What I came to understand was that I had picked up certain ideas about myself over the course of my life. "I am this" and "I am that." They weren't really true, and so I was always kind of at odds with the world.
Over a period of years, I started to understand the situation better. I was fortunate to be able to hire a good therapist, and I worked with him for four years. I started reading about Buddhism, Advaita-Vedanta and other non-dual philosophies. I began to meditate and attend a local Buddhist temple.
I also listened to a lot of Alan Watts, Rupert Spira, Francis Lucille and other spiritual teachers.
I also read and watched a lot of the work of Sam Harris, Robert Sapolsky, Gabor Maté and others.
Eventually I came to realize that my false, egoic self was just an illusion, and that I no longer needed to take anything personally. I also developed a greater sense of compassion for other people, and started to notice how they were caught in the same trap that had held me for so many decades.
At this time, I don't really take things personally anymore. I'm generally at ease in the world. If this kind of stuff interests you, you might enjoy the following video:
https://www.youtube.com/watch?v=oX1IFUDNtto
edits: Fixed up typos and missing words a bit.