Sounds like the symptoms of faulty Cam Shaft Postion Sensors to me ...
There are a number of old threads where people have had idenitcal problems and usually that's the cause ..
I had a very similar problem with mine a while back, the main difference way that mine never cut out while driving ... It just used to struggle to start every now and again...
Turned out to be a faulty Crank Position Sensor on mine .. I know Shire definitely had the same issues with his Zed and his turned out to be a faulty Cam Shaft Position Sensor..
Hopefully the Error code will reveal all ..