General, I don't know about car engines, but on a small engine like a zero turn mower, a bad ignition coil can cause a mower to stall but then re-start after it cools down.
Relays are usually either good or bad, not bad intermittently. I did, however, have one in the ignition circuit of a...