I was/am in a similar predicament and I would like to offer you my 2 cents.
Good news first - my green card has recently been approved and still to do passport stamping.
I, like you was the primary on the green card application. I filed for divorce 2 years ago. It was a nasty divorce. I wrote to the USCIS to withdraw my affidavit of support. He was still able to apply and receive an EAD, despite that. As I said my divorce was very ugly. He filed a false police report claimimg I assualted him. This was his way of trying to jeopardize my green card. I was arrested, and thank God, the DA saw thru all his lies and no chagres were filed. I later had a restraining order against him. In a strange twist of faith, his attempts to spoil my green card back-fired on him. Because of my arrest (from his lies) and the restraining order, my background check showed the arrest report, and hence turning what was clearly an approvable case into an interview case. The divorce is still not final yet (yep after 2 years). My background check would have been clean and despite being in divorce proceeeding he would have been granted a green card!
My advice for you, get a lawyer, both for the divorce and for immigration. And pray your God very hard. You will need their advice every step of the way. I do mean every step of the way.
Good luck, and God Bless.
PS: Dont let your anger (which I understand completely) compromise your good judgement.