Caffeine withdrawals are causing the headaches.It's not always junk food. In my case, it was coffee and aspirin. To treat constant tiredness from a job that requires working across two time zones, and the headaches I get from that. My general eating is pretty healthy.
Find another job or a more natural healthier source of energy.