Masturbation is not bad. But Frequent masturbation, like in your case can be problematic. Improper technique of masturbation can lead to sexual disorders. Use of pornography druing masturbation can lead to Erection problems. You must understand and learn about the correct way of masturbation from a expert.
Next Steps
I would suggest you to consult with a sexologist. For more information regarding this problem you can ask a detailed query here on practo.