All this legal BS was not (and is not) necessary. Offering you details of his sex life is not necessary. It's not *that* hard to do better even if you are the "bad guy".
Keeping your mouth shut shouldn't be that hard. For some reason for your H it is. He could "do better" by NOT doing it. It's just basic stuff.
Your H is much like mine... when he does something that reminds him of you he texts. When court/legal stuff comes up he texts. The pattern is obvious.
"Do better" even during bad times isn't *that* hard.