Have a routine....
A lot of the ppl itt have nailed it...
As someone with anxiety and that has had several sleeping problems due to anxiety, albeit not as hardcore as yours, I would recommend the following:
1. Have a sleeping routine: Do the exact same set of things right before going to sleep (or trying to go to sleep) that will train your brain to understand that your body needs to shut off at that moment.
2. Exercise 3-5 times a week (it helps more than you think)
3. Eat healthy
4. Eat 3+ hours before going to sleep
5. Drink two cups of tea before going to sleep: Chamomile + Linden
6. Try to pee before you go to sleep so you don't wake up to pee
7. Use aromatherapy bed spray on your bed and sheets
8. Take a shower before going to bed
9. Put your cellphone to charge in another room, NOT in your bedroom, do the same for all electronic devices
10. Turn on a white noise machine (a loud fan can work too) (I stay away from music... even relaxing music because it can change rythm and sway you out of sleep)
11. Don't do ANY other activities in your bedroom aside from sleeping (or having sex).... If you eat, watch TV or do any other activities your brain will not be properly trained. DON'T enter your bedroom unless you are going to sleep.
12. Once you're in bed start doing breathing exercises and meditation exercises.
13. If you keep thinking about stuff you need to do and that is keeping you from sleeping then buy yourself an agenda and write down all the stuff you need to do and just check it at the same time every morning. Go to bed in peace knowing that you'll worry about those things early next day.
14. Anxiety can heighten your senses, buy a face mask to avoid any sensitivity to lighting
15. Don't ever look at the watch or have any way of knowing what the time is. Set an alarm and put it far away from the bed and put it facing the wall so that you can't see the time.
16. If you've done all these things and you're in bed and just cannot go to sleep try either: reading a book, STOP focusing on the fact that you're not falling asleep
17. Sleep with a chill temperature (below 70F preferred, but not too cold either) in the sleeping position that you're the most comfortable in and try using an air purifier as well.
You can try as many combinations of the things mentioned above... Hell, try them ALL at the same time
If none of those things work and you're in a critical state and really need to sleep you can try four emergency measurements:
1. Drink alcohol (I don't recommend this since alcohol will put you to sleep easily but your quality of sleep will not be good).
2. Use drugs (depending on what type of drugs these are, it may be better than alcohol)
3. Use an over-the-counter anxiolytic (this is the best emergency option in my opinion) like Mexazolam. This works wonders and will put you to sleep. However don't use it often (only in emergencies) not because it is harmful but because continuous use will make its effect become less and less potent and after a couple of uses it does nothing to you.
4. Have 2-3 rounds of sex. Make sure to ejaculate and get burnt out. This will knock you out easily. Usually 2 rounds are sufficient and you will be very sleepy very soon.