Perhaps when your eyes are tired they are more easier overstimulated, I find any kind of over stimulation to any of my senses causes a migraine. Also, achy eyes could indicate an allergy which could lead to sinus headache or migraine. Also, achy eyes could be the result of overstimulation ie bright sunlight which could cause migraine.
Just some ideas, I'm no expert.
Kate