Here is some advice that I try (and often fail) to live by: Don’t take things personally. Just don’t. It can be really really difficult, but it is important for your emotional as well as spiritual health. Not everything is about you. And if you feel insulted by something, just take a step back and chalk it up to a misunderstanding. Make up some excuse to interpret whatever happened in the most benign way. Because if you go through life with a chip on your shoulder and seeing the whole world against you and the whole world trying to bring you down, not only is that delusional, it is also mentally and emotionally draining.
Also, even if someone is trying to bother you, don’t give them the satisfaction. Don’t let others get under your skin. Don’t take things personally. Don’t let your ego stand up for itself. If anything, let your ego take the hit. We have to lower ourselves in general, and that is a whole lot easier if you don’t get offended on the basis of your personal pride.
A great example of this is the sahabi who the Prophet ﷺ said would be in Paradise. Every night before sleep, he would forgive and remove any bad feelings towards anyone who had wronged him. We, in contrast, hold on to grudges for *perceived* wrongs, not even actual wrongs. Just perceived wrongs where we merely think we were mistreated, but again it is just egoistic delusion and taking things personally.