No one is going to prescribe you medication for such short lived symptoms which are only happening sporadically. I do get this can be frightening - I've suffered from migraine all my life from age 12 and have had a handful of ocular migraines, which are what you describe as happening to you.
I always thought aura was a precursor to a full on migraine with head pain, although what I've experienced with ocular migraines does sound very similar. But that's by the by.
You need to find what your triggers are by keeping a diary. Ime ocular migraines happen when I am very stressed. Lots of things can trigger migraines though - lack of sleep, eating irregularly, skipping meals you usually eat, hormones, stress, certain foods, alcohol. I get that it's worrying - first ocular migraine I had was really scary. Once it subsided I looked it up online and it was textbook, down to what had triggered it for me. There is no miracle cure, but you can do a lot to manage it yourself.
Frame it differently: if you cut yourself on something and it bled a bit then stopped you wouldn't seek medical attention. You'd clean up the cut and maybe put a plaster on it to keep it clean whilst it healed, try to avoid doing what cut you again. If you've been doing lots of spreadsheet work and are perhaps stressed, take a break from that for a bit and have an early night, maybe have a bath to help you unwind.
What you experienced as a teenager sounds like migraine to me too - probably hormonal. There is thought to be some sort of link between migraine and epilepsy, but it's not fully understood.