Headaches during intermittent fasting are caused by a lack of water. It is important to drink lots of water throughout the day and especially before bedtime.