I would look at the pickup coil as Dana suggested. It can fail when subject to heatsoak and then be OK once it cools. But a quick idea the next time it fails is to check for spark. If the spark stays strong then it's fuel related.