Dear Parthi dharan,
Thank you for sharing your question with the Wefugees Community!
In your case, as you are married since more than 3 years to an EU-citizen and live in Germany with your wife since more than one year, you may be entitled to get an independent residence permit after your divorce (See: Section 3 (5) EU/freedom of movement and this brochure in German/p. 22).
To check the requirements in detail, it could make sense to see a lawyer or a good migration counseling office for legal advice.
I hope this helps and please feel free to get back to us with any further questions.
All the best,
Meike