Hi,
Masturbation is natural, healthy , however in excess , it does affect lifestyle which you seem to be aware of . Stopping or reducing the no. of times requires commitment.
Consult a Psychologist or a Hypnotherapist.
You will get help in identifying certain triggers that are causing this . You will benefit by being able to resist the compulsions learn different techniques like behavioural modifications, trigger-response conditioning - this space is where you can regain control .
Your hypnotherapy sessions will depend on you taking into consideration your triggers, your past experiences and your lifestyle
The number of sessions you require is completely up to you, so speak and discuss how many are needed for you .
Next Steps
Consult a Psychologist or Hypnotherapist
Health Tips
Exercise and Maintaining good sleep hygiene , keeping a regular sleep schedule can also help.