I’ve never had headaches on a prolonged fast.. have you tried Himalayan sea salt added to your water? If not I highly recommend it. It could be salt deprivation that’s causing the headache. I get lots of headaches in my non fasting life, btw. It’s the opposite for me.