I get those with my "visual migraines"
I dont always get a headache with it, just visual stuff. They can last from 10 minutes to 60 minutes. Some folks get a bit nauseous, and others just get the visual stuff. If you lay down and rest for a few minutes it should go away.
If it keeps happening, make an appointment with the MD.
Hang in there.