gratitude vs. relief
Gratitude names what someone’s help means to you. Relief names the change when a worry lifts.
One situation, two words
A neighbor finds the missing house keys at the bottom of a shopping bag.
gratitude
Tariq thinks about the neighbor kneeling on the pavement to empty every bag with him.
relief
Tariq thinks about his sleeping child. He can carry her straight inside after all.
Choosing the word
If Tariq found the keys by himself, relief would still fit. Gratitude fits especially well when he speaks about the neighbor.