Hello and hope you are doing well.
You should not keep thinking about sleeplessness, as this in turn promotes insomnia and it becomes a vicious cycle.
You should stop becoming anxious and try to relax. Condition yourself that you can relax and that you can sleep well. Follow good sleep hygiene measures like going to bed at the same time, waking up at the same time, avoidance of alcohol, smoking and caffeinated beverages. Maintain warm, comfortable bedroom environment and engage in relaxing activities like a warm bath before bedtime.
Try yoga and meditation they have calming effects. Go for long stress free walks. Also, do exercise in the daytime this promotes good sleep.
If it your symptoms persists or are troublesome consult your doctor for assessment and counseling.
Hope this helped and do keep us posted.
It sounds like the reason you can't sleep is anxiety. Most people with problems sleeping really have something else going on that's keeping them from sleeping. You should conceder talking to a therapist or a psychologist.
Good luck, I hope things get better for you.