Thanks for writing your query.
Twitching in eyes is commonly seen in stress
or lack of sleep.
The above mentione two factors are also important cause of migraine
You should avoid mental or emotional stress.
Also have sufficient sleep, atleast 7-8 hours in 24 hours.
will help in dealing with stress.
If the problem persists, get yourself examined and investigated by a Neurophysician and an Ophthalmologist.
I hope this is helpful to you.