Sounds like a question for a medical professional. But I had Epidydimits many years ago & that can cause lot of testicular discomfort, not sure about the penis head, though. Start with your regular Dr. & if he/she can't diagnose it, see a Urologist. By the way, when I had Epidydimitis, I was told to abstain from sex or masturbation until it cleared up, so abstaining from masturbation might help...