Thanks for query,
You have pschycological pain in testis.
desire has no relation to pain.
Sex is in mind.
Just divert your mind by busy yourself in other activity.
Reduce the frequency of masturbation.
Excess is always poison.
You will get relief of this pain .