Hi ,
This problem has arisen before and there's several possibilities.
If I'm correct, you should be able to temporarily cure your issue by turning the ignition off and back on again..?, Doing this should be the same as disconnecting the battery
If so, it could be the fuel pump loosing pressure or a worn TPS.
Sometimes the coils can break down but this is ruled out by disconnecting the battery or turning the ignition off then on