I understand that, and I’m so sorry you went through that. To find out your partner is cheating is devastating. My situation was somewhat unique, and I greatly hope that you never put your wife through what my ex-husband put me through (he was abusing drugs and embezzled from his employer).
What I will say is I’ve always loved the quote, “When God closes one door, he opens another, but it’s hell in the hallway.” The hallway is hell, but for myself, our relationship ending did work out for the best. I hope it does for you too.