Fuel starvation can cause that sequence. At first, the fuel starvation causes a lean mixture, which causes a high idle, eventually there is no fuel, so the engine stops. Could be back to the plugged tank vent or some other fuel restriction. It's insidious because by the time you check for fuel in the bowls, it has replenished and the sequence then starts over again. This condition can be worse with low fuel in the tank, so try with a full tank.