Thank you for asking. I can understand your concern. Masturbation as such may not be harmful. But if it done for wrong purpose like for relaxing, to avoid stress, to be able to sleep, or if done with use of pornography, in such cases it can become problematic and addictive. Not able to control masturbating, irritability, poor concentration, weakness, etc these are symptoms of Compulsive masturbation problem. Also pornography use while Masturbation is an important cause for Erectile Dysfunction.
Next Steps
You must learn about healthy technique and method of masturbation from an expert. Kindly consult with a sexologist. You can directly consult me here on practo for a detailed management.
Health Tips
Don't worry. With suitable medications and instructions it can be completely cured.