Generally masturbation and pimples are both physiological and result of
testosterone surge in young age. But since they are intense or severe in your case better seek solution in Homeopathy amd counselling.
Next Steps
Consult personally a Homeopathy sexologist cum counsellor.
Health Tips
Lifetyle modification and stress mgt will also help in long way.