Anyone here reliving every moment you behaved poorly over the course of your relationship?

I can’t stop blaming myself. I wonder what I was thinking. The petty arguments I initiated, the nitpicking, criticizing, temper tantrums. It’s hell. I’m going years back into the the history of our relationship and identifying events that I believe contributed to the ending of our relationship. How do a break free from obsessive thinking and rumination?