Welcome back to the Wefugees community and thank you for sharing your question.
To answer your question more detailed, knowing the type of residence you have might be helpful. Speaking in general, applying for a visa, some countries require a minimum validity of your passport of 6 months.
Regarding your German residence permit (given the fact, that you are allowed to travel/leave Germany in general and also allowed to visit your country of origin), I don’t see an issue as long as the residence permit is valid.
Would you agree @mbeon-caritas or @Mbeon-Lena?
However, please don’t hesitate to get back to us if you want to discuss your situation further.
All the best,