Periods of change often trigger this in some way. You say you feel very different even when you go to sleep, and as such, the old way of falling asleep could not be functional anymore, so you should adapt to the new condition and find your new way of falling asleep. Those sleeping pills will work only for the period you use them, but they’ll only make things worse after you stop taking them, since you still won’t have learned anything, and you will probably find yourself back to square one.
So next time you go to bed, focus yourself on how you fall asleep, and what part your consciousness plays in it. When you learn how to fall asleep properly, you’ll be able to do that without any aid
Some suggestion on how to ease sleep in this topic ^^