Hi Jim:
Have been an Air Transport Rated Pilot for 20 years and flying both military and civilian now for nearly 36 years.
Have never had cephalalgia which is a pain in the head caused by dilation of cerebral arteries or muscle contractions or a reaction to drugs.
Retired now I still get around to many military messes and flying clubs.
I read your post quite a while ago so I started to ask around about the symptoms you described.
Ninety-five per-cent of the aircrew I spoke with can not remember any medical problem during training, after training (de-briefing) or have had any problems over their years of flying.
Now that brings us to the Five per-cent.
All the aircrew I talked to said the problem was with their glasses. If a pilot must wear prescription glasses then his sunglasses should also be prescription glasses.
A couple of the aircrew also told me they had a problem between progressive lenses and bi-focals. Bi-focals seem to be the most popular with the aircrew I spoke with however I don't like and don't wear bi-focals, I prefer the progressive lenses which darken with the amount of light.
We all agreed that a good eye exam along with a medical yearly is very important and wise. Also we all agreed that a pilot or a person learning to fly experiencing those symptons you described should stop flying until he finds out what the medical problem is.
Also since I have been wearing glasses for the last eight years my optometrist not only checks my eyes but both pairs of glasses at each visit.
Hope you have not given up wanting to fly Jim....I am sure the solution to the "headache" problem is a simple one

Cheers...Happy Landings...Doug