Hello,
Masturbation is normal. It is the same process as sex, only difference is that during sex what happens in vagina, occurs in hand or against any surface during masturbation.
So there are no any side effects of masturbation.
But when a person do it frequently and regularly, it can cause thinning of semen and gradually decrease in
sperm count as sperm production requires some time.
So gradually it becomes habit of a person.
There is no harm in doing masturbation before going to sleep, but you need to be cautious of not getting addicted to it.
I think you linked sleep with masturbation and that is why you are not getting sleep without masturbating.
Do following things:
1. Read some materials you are interested in, other than porn
2. Spend more time with family and friends
3. Do some activities you like.
4. Engage in exercises.
5. Do
meditation before going to sleep, this will relax your mind and you will get sleep.
Hope this helps you.
Thanking you.