Sounds rough. When I have trouble getting to sleep I just watch videos or play a game, playing games seems to work best since it helps to occupy your mind. Ones you play on your phone or tablet. I play Minion Rush, DC Legends, and Transformers Forged To Fight which crashes so much it can drive you nuts and not help you fall asleep. It's good if your device is set to sleep when it's idle for too long so you don't have that glow which can wake you up. Reading works for some people as long as your book doesn't fall off your bed with a loud slam that will wake you up. Of course those things don't work for everyone, and sometimes even if they help you get to sleep you don't always get a good nights rest. There are all kinds of things to try which you probably have. Some people drink warm milk, some people use a little (or a lot) of alcohol, or rock in a chair, etc.
I'll tell you something funny, I like to write stories and when I'm in the grove with one I'll write for quiet some time. There have been times when I start to get sleepy but I just want to finish a thought off. I'll start dozing off and wake up to find a string of a letter, which ever finger is pressing harder on a key, filling up the screen. All I see is a wall of dddddddddddddddddddddddddddddddddddddddddd which is the most common one I find, my left middle finger seems to be the one that rests the heaviest. I don't even use that finger very often, it's usually my right middle finger since I'm right handed.
Anyway, I've probably bored you now and you've fallen asleep and now you are going to be dreaming about computer screens filled with walls of letters.