This sounds like a crankshaft angle sensor is going out, but to be sure when the engine stalls we need to check for spark. here is a guide:
https://www.2carpros.com/articles/how-to-test-an-ignition-system
If there is no spark I would replace the sensor here is a guide to show you what you are in for when doing the job. When the crankshaft sensor goes out most of the time it will not set a code.
https://www.2carpros.com/articles/crankshaft-angle-sensor-replacement
The crankshaft sensor is located at the rear of the engine lower left near the transmission flange.
Please let us know what happens.
Cheers, Ken
Monday, February 5th, 2018 AT 9:39 AM