Masturbation and porn cause so many issues its basically self harm. I'd argue that even cutting is less harmful.

Stop touching yourself and kick the demons out. You can do it.