Hello Friend, Good that you are seeking a help. Reason for sleep disorders are many and most common one is any kind of mental disturbance. So it's better to treat the root cause rather than treating just the symptom.
So first level take a counseling support to assess your current condition and isolate the real reason for such disturbances. If you address that, your sleeplessness will automatically go off.
Next Steps
Feel free to reach out to me online through Practo app chat for further evaluation and suitable solutions that you can follow practically to overcome.