Yes. It's very painful.
The path towards lessening pain is seen as not relying on people (since I suppose people are rarely going to be trustworthy or reliable), but when someone says such things when one is grieving over being turned away at every opening, it is...very discouraging. It feels like invalidation and more rejection, hearing such things. I don't know about you, but what I want to hear is that someone cares and can empathize, not that I'm on the wrong path and I just have to not care anymore and everything will be fine. I'm not sure how to accept that myself when it goes against what appears to be my fundamental nature.
I'm sorry that you're in this situation and that no one is there for you right now.