The chaos of active addiction and the chaos of an affair and the ending of a marriage felt very similar to me (regardless of if they were related or not).
Al-anon, therapy and reading about addiction and affairs helped. I did not except Al-anon to help with the affair (because that is not the focus of it), but it really did....especially learning about detachment.
Sending kind thoughts to you.