Thanks for your query. Masturbation
is a normal practise at some stage of life or other with no health consequences absolutely. However, you seem to be in a state of compulsive masturbation which is pathological in itself though it has no health consequences. I would suggest you meet a psychiatrist
for an evaluation. The compulsive component can be addressed by medication like SSRIs or psychotherapy
techniques like CBT/Cognitive behavioural therapy.
Distraction techniques like gymming are fine. I would also suggest meditation
and breathing relaxation exercises. Wish you good health.