I agree with Lily and Blue Bear, but I know from my own struggles that it is easy to blame yourself, esp. when your spouse is all too happy to blame-shift stuff onto you. Add to that the high probability of gas-lighting and it is no wonder one feels at fault because that is how they want you to feel. The victim is always the gay spouse it seems and then we get the rap for ‘outing’ them (for those who face the special trauma of closeted in denial types) if we have the temerity to say anything about them as the split happens.
I haven’t read your story, but take care of YOU! Your needs, financial and otherwise, simply must become your priority. The energy stealing nature of these people is legend. They are feeling the homophobia and shame that kept them in their relationship with you and it is uncomfortable for them. So god help you if you try to get any empathy from them in that state. Not usually a thing.
Sending you strength!