Two things to check the next time it happens. As soon as you feel it starts to quit open the gas cap. If it continues to run, your gas cap is bad, vent plugged, and needs to be replaced. If this is not the problem, purchase an inline spark tester, and check for spark as soon as it quits. No spark coil has either a hot short or hot open and the coil needs to be replaced. Let us know what you find.