I keep destroying my friendships and relationships

Everytime someone does something that I might recognize as auto-destructive towards me, even if it’s something small after they gave the whole world to me, I end up viewing them as a terrible person and I block and remove them forever, sometimes without even giving an explanation, because I myself don’t know how to describe this without sounding stupid. I then regret the way I acted, say that I’m sorry and then remove them from my life again not even two days later (and I end up feeling bad again for how I acted). I’m not talking about mistakes, I know we all make them, I’m talking about a thing, sometimes even a silly one that maybe isn’t even that bad but my mind perceives it as something targeted towards me. I don’t know how to explain myself well, but I’ll give an example of something that happened in my life, there was this guy who always pointed every little flaw I had to my ex best friend (behind my back) not even to other people, always to her, and I started despising him and wanted him out of the friend group badly, because I felt like he wanted to destroy my friendship with her and make her hate me, so I randomly blocked him everywhere, I then regretted it, apologised, removed him again, and apologized again. Another time a few months ago, I was sad and ranted on fb over something that happened in class and this other old close friend of mine said something like “it’s your choice if you want to feel bad and then complain on the internet” and I started ignoring him for months and he realized I kinda “shifted” on him, now we are not friends anymore. I’m just a lost cause at this point.