It sounds like you might have an issue with the crankshaft position sensor.
Over time with heat and vibration for the engine the crank sensor can lose its internal calibration. This will cause it to send error signal to the ECM, and that can trigger an engine shutdown. After the shutdown, the engine may or may not start back up.
The Crankshaft Position Sensor is located at the lower RH front of the engine.
Here are some helpful articles:
I have attached diagrams for your reference.
Please let me know of any questions.
Images (Click to enlarge)
Thursday, October 7th, 2021 AT 8:17 AM