For the headache make sure to stay hydrated during the day, some water with a few drops of lemon and one cup with some pink or sea salt and drink it. I experienced that and also trouble sleeping, I purchased the magnesium supplement and it does help. I usually take it 30 minutes before my target time, though make sure you start winding down like reading a book or just lay in bed, otherwise, you may stay awake. Exercise will help also to get rid of the excess energy
I think you are in early ketosis, but suffering from some common, temporary side effects as your body learns to burn fat. Make sure to get enough salt, and eat plenty of leafy green vegetables. Dr. Berg will have videos on keto for you to look at.
Thanks! Your answer is awaiting moderation.