In case I had the failure with the ignition again, check the separation of electrodes from the spark plugs and the high cables, it will not be that you have mass leaks in the form of spark.
If everything is fine, you can have a crankshaft position sensor in poor condition, so it goes back, (but in that case the breakdown light would immediately turn on).
Another reason why I headed the engine in idle is because of the issue of injection, but if the fault light would also ignite (Lambda probe failure, flowmeter failure or failure in the gas butterfly contact box).
Sometimes there are failures in injection motivated by improper air intakes in the engine, check all clamps and sleeves from the intake manifold to the air filter, and check the connectors does not fence that one is oxidized or loose.
All the best.