First off, I am so sorry to hear about your childhood. I can already tell by your post that you have put in so much work to really reflect all the way back and that is really great. I definitely have had some deep insecurities that have stemmed from childhood as well. My parents had a tough divorce but in the end I know it has made me who I am today.
As a result of that, I also have had to deal with perfectionism. By seeing my mother drink and abuse drugs, and my other siblings drinking heavily, I told myself I could never drink or do drugs and had to be the exact opposite of it all. Very black and white thinking. Definitely some shame about not being good enough or being behind in life as I didn't have the opportunities to go to college right away because I was paying for myself to live at that point.
Ive went through a big health anxiety issue about 7 years ago which eventually turned into OCD about my physical body. I conquered that and now all of a sudden it came rushing back after a recent panic attack as mental obsessions, compulsions, etc.
A huge part of me is I always feel a great sense of purpose when I help other people. The feeling of "being a good person" has something Ive always felt to the core. Like I was put on this earth to help people.This however is what has gotten me in trouble. Talking to my ex put me in the situation of feeling that I needed to check in with her about her father and how he was doing, etc. I even told her Id go see him and bring him a coffee one time. I thought about telling my wife and asking but obviously I didn't go and didn't tell me wife. I think with this mindset, I was telling myself it was OK because I wasn't crossing a line by not going to see him, but I was by not telling my wife.
When you say "a lot of people could have just turned the page", that is what a lot of people have said as well. People told me that I should have never even told her because I stopped myself before it went too far, but I just had to get it out. I just have ruminating thoughts like "What if people knew what I did in my marriage" or "What if my kids found out I did this to my wife". I walk around in what feels like toxic shame but deep down I know I did the right thing and I'm hoping that by confessing and just being true and changing my behaviors going forward is what will make us stronger.
I am going to switch to another therapist soon as I'm not sure if OCD and exposure and response prevention is really the avenue I should be taking. I will take your advice on those books too. Thank you for your response.