I'm sorry that this happened to you. Some people can be so cruel and insensitive. Similar things I have heard people say are:
There is always hope.
There is a solution to every problem.
There is always help available if you just ask for it.
I don't know why people can't keep their mouth shut if they don't have anything helpful to say. I would have been tempted to ask them:
Since you are so smart and know everything, can you please tell me what is the way out of my situation?
That's literally the reason why I want to die: there is no way out of the immensely sad, pathetic situation I'm in.
I didn't give up when my rich Father abandoned my brother and I and provided no support even though he could easily afford to, because I could move forward with life- there was a way out.
I didn't give up watching my Mum suffer terribly with multiple illnesses over the years because I could move forward with life- there was a way out.
I didn't give up when I had to live in chronic pain from being attacked for no reason at the tender age of 15, because I could move forward with life- there was a way out.
I didn't give up when I fought through years of addiction that I uaed to cope with suffering because I could move forward with life- there was a way out.
Now I have a health problem that causes terrible nerve pain that robs me of my sleep and sanity which I can't solve. After fighting so desperately hard for so many years I am defeated- there is no way out.