Hi there ~
If your prepuce or glans
is hurting or has been injured due to excessive masturbation
it might help not to indulge in these activities for a while. I also feel like you might need to see a psychiatrist
to give him/her a lengthier history so as to resolve the issue, and if you might need medications to help as well. I hope this helps.
Take care and have a lovely day!