Mental Health issues are real and they have massive affects on peoples lives and their sexual lives. Although we "jest" about certain abilities, or lack of, the truth is the mind controls the body.
While I'll admit that I've used sex to try and "cure" situations, it only temporarily masks the issue.