You have to let go.
When we make a mistake or are insulted, we hang onto it, impairing our behavior. Our pride (which can appear as self-loathing or righteousness) causes us to wade into the present moment, swinging for retribution.
Holding onto you tenacious self-harm makes you the victim and converts friends to villains.