This habit of yours will definitely lead to decrease in your ojh(immunity),increase overall weakness,debility,confusion and ultimately loss of dhatus!!
There can be many aspect to look at your problem
But the main way of treating this is by -maintaining your mental health
-giving shukravar dhak(improving sperm counts)
-giving bal(strength) to male genitals
Next Steps
start doing pranayam anulom vilom
indulge yourself in meditation and decrease the habit of masturbation!
Health Tips
make yourself busy
eat light food both time
brahmacharya (abstinence) follow
go for pranayam and meditation