These can also be migraine
Migraine attacks are known to cause some blurring of vision followed by headache, sometimes vomiting
or vomiting sensation followed by a complete resolution of headache and vision.
In case if you are a regular computer user, some ocular exercises can help you to relieve the strain.
You can take treatment for migraine with your physician's advice..