Sometimes when people come into your life, it is to be a good example of the kinds of people you don’t want to be like.
I would say that even though, at face value, this seems like a bad experience, if I were you I would take this as a learning experience. Some people are down right rotten to the core, and the truth of the matter is they want other people to suffer because they are suffering. No amount of money can fix the fact that they are unhappy, and have no idea how to find happiness. They are so far away from the answer that they end up causing other people harm because they are suffering. The truth is they don’t really mean it, they’re just saying things because of their own pain. You should never take what these people say personally because, the reality is that when people find something wrong with you it is because they don’t like themselves. It says more about them than it does you.
The real answer to your question is learning how to be happy despite what happens around you, and knowing that just because one sliver of the population acts like this, doesn’t mean that all people act like this. There are good people out there, they have no interest in causing you or anyone else any harm,