Hi there,
As you've rightly mentioned, mental stress has a lot of impact on your Sex life, you need to consult with a psychiatrist and discuss your issues in detail, so that you get a solution for both your issues.
Meanwhile focus on the basics like exercising regularly, eating right, getting adequate sleep.
Next Steps
Consult with a psychiatrist-sexologist in person.