When people are obviously in a lot of pain, responding with “Fuck you, you shouldn’t be suffering,” is not going to solve anything for anyone, regardless of how frivolous the problem seems to you.
Which isn’t to say that people never get upset about genuinely frivolous problems, or that they shouldn’t be encouraged to take healthier attitudes in such a situation, or that their suffering creates an obligation on anyone else’s part to do anything about it. But pretending that their pain isn’t real or declaring them to be bad people for feeling it isn’t helpful.