I wish English had a different phrase for “I’m sorry” where it means “I sympathize with your hardship” instead of “I apologize”.
We have “I’m sorry for your loss”, but it’s hard to express sympathy without sounding apologetic.
“Dude, that sucks” works, I guess.