Dear @Emily101,
Thank you for your question and sorry you had to wait so long for an answer!
If you are married to German citizen, you qualify for a residence permit in Germany. However, you are supposed to hold a valid visa or residence permit in order to apply for it. In principle, you should go back to your country and apply for a family reunification visa from there ; but depending on how long you overstaid your visa, this might take time / be difficult.
The German Foreigners Office might make an exception and give you a "Tolerance permit" (Duldung) until your receive your residence permit, so I recommend you to get in touch with an immigration lawyer to help you with this.
I hope this helps. Don't hesitate to add a comment if you need additional information!
All the best,
Safia