It may be a problem if it becomes hard to control and interferes with school, work, relationships, sleep, or daily life.
See a clinician if you have persistent genital pain, bleeding, sores, swelling, discharge, pain with orgasm/ejaculation, or if sexual behavior feels compulsive or causes significant distress. A
Cleveland Clinic overview likewise notes that masturbation has no severe side effects for most people.