Thanks for asking. Masturbation is not bad. But it Very important to understand and know the correct way and techniques of masturbating. Improper or unhealthy pattern often can result in sexual problems. Use of porn, misconception about sex, etc are important areas to explore and focus on.
Next Steps
I would suggest you to consult with a sexologist for further information. You a also ask a detailed query here on practo.
Health Tips
Don't worry. But kindly consult with an expert for further information regarding this.