I thought I had insomnia but I fixed it by watching math lectures at night. Some people probably still need drugs and it doesn't work when you sleep with someone who doesn't like doing that, but it's one alternative to try.
I do something similar. I always have two audio books to listen to. An interesting book that I listen to recreationally and one that is somewhat boring or relaxing in some way. I use the relaxing material to get to sleep.