Is Sex is another form of stress provider ?

More of stress reliever.

Based on my personal experience, it's essential to reduce stress. It may cause a lot of health problems, including erectile dysfunction (my husband was diagnosed).
Sorry for what happened to your husband but how old are you guys? maybe there's also a factor according to your age.