If you have blurring of vision, nausea and see some light flashes it could most probably be due
to a migraine.
Cure can be in terms of avoiding trigger factors. You can prevent the occurrence of headaches by avoiding trigger factors that induce an attack. Alcohol, smoking, altered sleep patterns, missed meals, loud sounds, odd smells, physical or emotional stress and certain additive foods are known to trigger attacks.
Hope this helped and do keep us posted.