The thing about insomnia is, the more you worry about it the more it plagues you. So, if you plan to go to bed worrying, and it's not easy to break that habit, you will toss & turn.
Try to not clock watch. Do things to calm you down in the hours before bedtime. Read in bed, which helps some people switch off.
Try to stop yourself before you get more anxious upon waking, which can be difficult if your anxiety is worse at the moment.