Hello there, i can understand how hard it must be for you to deal with this problem. It might be due to deeper emotional issue. I would suggest you to seek treatment from a psychiatrist so that he can prescribe you sleep medications and diagnose it and also you should seek counselling to address your problem.
Next Steps
Consult a psychiatrist as well as take counselling sessions from a therapist.