You need spark, fuel and compression to get the engine to run. Next time it happens remove the plug and see if it is wet. Dry means you’re not getting fuel. Then check for spark. An inline spark tester is best used for this, so you can check for spark under compression. As it runs cold I doubt you have a compression problem. Have you tried a new plug?