The symptoms seem to indicate that you're suffering from bipolar disorder, which is a long-term, painful erection that can last for several hours without sexual stimulation, and it's important to get additional tests and start immediately to treat your diagnosis.
Doctor, I'm experiencing pain during sexual intercourse, leg cramps, cramps, zoru. What's the problem?