Bad ballast or wiring to it from ignition switch. Next time it happens run jumper from battery + to coil +. Problem cease? Investigate all of above. I also like dirty tank idea. Possible dirty carb or sticking float needle.