I think Meike is totally right. According to § 3 (4) of the freedom of movement act can be entitled to an independent residence permit in case you get divorced after 3 years marriage.
see here https://***.gesetze-im-internet.de/englisch_freiz_gg_eu/englisch_freiz_gg_eu.html#p0036
Please note that you have to meet further requirements wich are described in this paragraph (have work, be a jobseeker for not more than 6 months, have shared custody for a minor child).
I recommend you make an appointment with an MBE-advisor nearby. He/she can help you write a letter to the foreigners office or call them. Just google "Migrationsberatung" and your place and you'll certainly get several hits.
I hope my answers were helpful. I'm a consultant at the app “mbeon” and I‘ll be glad to help you over a longer period of time. Mbeon is an online advice for migrants via the mbeon app, which you can install on your smartphone for free. Download it from App Store or Google Play Store. ” and get confidential one-to-one advice in a secure virtual space without other people reading our conversation. Further information: ***.mbeon.de.