Why do I feel like I was the problem and ruined my marriage?

Husband I married for 5 years, together for 10. He divorced me last November and I moved away with our son. I was looking back at old texts and felt like I was always harassing him fighting and making accusations. Never trusted him. Everytime his friends would visit or family I would ask a million questions and he would beg me to just stop and change and I never did. He would always threaten divorce bbecsuse I took fights to Far. He cheated before we got married and towards the end of our marriage he started clubbing and getting on dating apps. I didn’t trust him at all but I feel like if I didn’t harass him and learned to communicate I wouldn’t have pushed him to the point to do all that. I’m still madly in love with him and I feel like I fucked everything up. What do I do?

Why do I feel like I was the problem and ruined my marriage?
Post Opinion