Is there a name in English language for the feeling of being happy something bad happened to someone else rather than you? [duplicate]

Solution 1:

It may not carry every nuance you're looking for, but we often use the German loan-word schadenfreude for something like this.

Dictionary.com defines the word as,

satisfaction or pleasure felt at someone else's misfortune.

Solution 2:

On the off-chance you're just blanking on a common word, possibly relief??

alleviation, ease, or deliverance through the removal of pain, distress...