This issue is most likely an ignition related problem. Your ignition pick up or crank sensor is called a hall effect sensor. These are common to fail when they get hot. What happens when they are faulty is when they are hot they will actually cause a open circuit in the ignition system and this will cause the spark plugs to just stop firing which will cause the engine to just stop running. Then it will not start and just crank when trying to restart it.
To confirm this we need to remove a spark plug and hold it against the block and crank the engine to see if it is firing when this is acting up. If there is no spark then I would replace the pickup and retest.
Please let me know if there are questions. Thanks
Images (Click to make bigger)
Saturday, April 25th, 2020 AT 2:20 PM