Maybe try melatonin, it's the natural substance that makes us sleep. It will help break the pattern. I use it 30min before sleeping, you have to then try and sleep or it keeps you up. I used it for a month and now only every now and then after a couple of sleepless nights. You can buy it over the counter but check it's not going to mess with any medications.