The headache could persist for some time, so patience will be called for here I think.
As your fast progresses and you detoxify, the symptoms of elimination will begin to clear and your headache should begin to diminish if not entirely disappear altogether.
Just hang on in there.
In the words of Paul Bragg....."Just grin & bear".