For the record you've been 100% primal even including the butter! Also, could it be a dehydration issue? After hours of sleeping most people wake up dehydrated, some are just affected more than others.
Also, could be an electrolyte issue. I used to get severe headaches and brain fog (especially when VLC) but started eating more salt and they went away.