It's okay to get out of bed and do something else if you really can't fall asleep
If you can’t seem to fall asleep, it’s fine to get out of bed and do something else. Lying awake for hours will probably just leave you feeling frustrated.
We are creatures of habit. Many of us who suffer from insomnia get in the habit of associating the bedroom with feelings of sleeplessness and frustration. These mental associations can make it even harder to fall asleep at night.
If you truly can’t fall asleep, get up and go into another room. Choose a quiet, dark room where you can engage in a relaxing activity like reading, meditation, gentle yoga, journaling, or drawing. Don’t watch TV or use your computer or smartphone; these devices will only keep you up longer. Eventually, you should feel relaxed and calm enough to head back to bed and give falling asleep another try.