A 10-year-old boy presents with frequent episodes of seeing bright, multicolored spots in his peripheral vision that last for about two minutes. These episodes are sometimes accompanied by brief eye deviation and headaches resembling migraines. Neurological examination and development are normal. What is the most likely diagnosis?