Aneye twitch(myokymia) is a benign condition that causes involuntary spasms of the eyelid.
These triggers can also cause headaches.
Because there is no test used for migraines, a diagnosis can be difficult to make and sometimes missed.

SCIENCE PHOTO LIBRARY / Getty Images
Cluster headaches can occur every day and at multiple times.
Eye twitching is rarely continuous throughout the day without stopping.
Eye twitching that occurs with headaches often lasts until the headache symptoms resolve.
Underlying conditions causing eye twitching need to be treated and managed first to see any improvement.
You may have eyelid twitching for a few days, but it typically goes away within a week.
Muscle spasms feel like brief involuntary contraction of muscles.
American Migraine Foundation.What Is Migraine?
Johns Hopkins Medicine.Cluster Headaches.
Johns Hopkins Medicine.Eye Twitching.
National Library of Medicine.Eyelid twitch.