Hello
As soon as the divorce has been formalized you will no longer have the right to be considered a resident under regimen comunitario; you have the obligation to notify the divorce. If you do not divorce, your card is still valid.
You can only shift to regimen general if you have complete 3 years of marriage, being one of those years a legal resident in Spain.
Regards,
Bookmarks