Can stress or mental health affect sexual performance?

Yes. Stress, anxiety, depression, and performance pressure can all impact libido, arousal, and the ability to maintain an erection. A holistic approach that includes mental and emotional health is important.