I have been suffering from insomnia for years. I read, heard, and tried all the known solutions, and none of them really worked. Starting with the classic solutions: counting sheep, tilting the bed from east to west instead of north to south (or something like that), and of course, sleeping pills.
In the end, the solution I found and succeeded the best is: just not to worry when it happens!
If I do not sleep, so what? I have fun spending the night with my thoughts. After all, we are never aware of the moment when we fall asleep, only to the one when we wake up: for example, when we wake up from a dream. And in the worst-case - white night - even then, we have nothing to worry about because it is human nature that we must sleep well the next day.
For example, today I had a very positive experience: I spoke to my club members about the topic I wrote: "I and my local in the world." The guys listened, and a very heated and exciting debate opened on this subject. I must say that the few times I have tried to speak in front of an audience, I have failed miserably. The difference, it seems to me, is that this time I was talking about a subject that was close to my heart.
The result was not long in coming: the same night, I did not close my eyes. I said to myself: "It's alright! I did not sleep? So, tomorrow I'll probably sleep like a baby!". And by the way, if babies sleep like babies, it's precisely because they know nothing about the other falling asleep methods.