An annulment nullifies your marriage. It's as if it never existed. Therefore, when you green card expires, you will not be able to submit an I-751, Much better to get a divorce.
It is advisable to contact an immigration lawyer to discuss your case and find a way forward.
There may be other options open to you.