Sleep deprivation is common in tech people because of working on laptop for long hours and odd time of work.
There is clear link between technology use before bed and COMPROMISED SLEEP.
More work equals less sleep.
And less sleep impacts
# work performance ,
# feeling tired
# less creative
# less focus .
You must consult with doctor to discuss things in more details , to rule out exact cause of problem . There can be some other reasons too like stress of some kind , some emotional issues.
You need to consciously bring changes in lifestyle .
Next Steps
proper diet, healthy lifestyle integrated with accurate medication will help you get sound sleep .