The second is the obvious one; caffeine keeps you awake. As a rule, you should avoid drinking caffeine for 6 hours before you go to bed. Alcohol can also affect your anxiety symptoms and sleep ...