Okay, let's look at this. Firstly, forget the martyrdom stuff. I don't care about that and it's a distraction right now. Stop trying to be liked. you're okay, let's start from there.
The reason you don't want to get into the situation again is A) Other people being hurt and B) You don't want to be responsible for that.
So, okay, I bet these are true, but they are interesting choices. The first suggests your primary concern is others' welfare when it probably isn't. So this is an approval seeking thing. You want us to know you aren't a monster. I don't think that. It's okay.
The second is another evasion of responsibility. i don't like the way I feel when I feel bad about myself. I don't' want the the responsibility of that. That's a fear of commitment to the idea of what you've done. You've ALREADY damaged people. you have already altered and maybe ruined that marriage. You have already done. that. Take responsibility. It doesn't make you a villain. It is just what you have done.
What we need to do is to move your focus, counter-intuitively, onto yourself. Because this is actually the more honest voice. The reason you don't' want to get into the situation again should be for YOU. What do YOU want? Do you want a proper, full time relationship? To get married again? Or not. Do you want to be single and happy with occasional sex? What do you want for you. Then you can work out how to go about it.
Maybe read 'He's Scared, She's Scared' to look at commitment-phobia. It's definitely good to get your sense of approval from somewhere else. Work, sure. But you need to get to a point where it's okay if someone doesn't like you. And it's okay if you do something wrong. You're self-blaming before anyone else can get to you, even on this thread. I know you haven't responded to it but it sounds to me like you have control issues. By which I mean perfectionism and fear of being judged, which might lead to the self-disgust and self-sabotage you describe.