Hello!
When this happens, does the check engine light come on?
Are there any codes in the computer?
I would recommend to check the crankshaft position sensor. It could be bad causing your stalling issue.
CRANKSHAFT POSITION SENSOR The crankshaft position sensor senses the crank angle (piston position) of each cylinder and converts it into a pulse signal. Based on the input signal, the ECM computes the engine speed and controls the fuel injection timing and ignition timing.
ASE MASTER TECH
ADVANCED LEVEL SPECIALIST
ALso, you could have a bad mass air flow sensor. Here is a recall on this subject.
Recall 00V259001: Possible Engine Stalling
Some Sonata vehicles equipped with 2.5 liter V-6 engines and all Elantra model vehicles may have experienced intermittent low-speed engine stalling, which could occur if the MAF (Mass Air Flow) Sensor electrical signal is interrupted as a result of engine vibration transmitted to the MAF Sensor connector wiring harness.
This condition can cause the engine to stall, increasing the risk of a crash.
Dealers will re-route the MAF Sensor connector wiring harness.
Owner notification is expected to begin during October 2000. Owners who take their vehicles to an authorized dealer on an agreed upon service date and do not receive the free remedy within a reasonable time should contact Hyundai.
You can accept now and we can still continue our conversation if you have any further questions.
However, I would recommend to test both the crankshaft position sensor and mass air flow sensor before replacement.
Here is some info on how to test the crank sensor.
TROUBLESHOOTING HINTS
If unexpected shocks are felt during driving or the engine stalls suddenly, shake the crankshaft position sensor harness. If this causes the engine to stall, check for poor sensor connector contact. If the tachometer reads 0 rpm when the engine is cranked, check for faulty crank angle sensor, broken timing belt or ignition system problems. If the engine can be run at idle even if the crank angle sensor reading is out of specification, check the following:Faulty engine coolant temperature sensor Faulty idle speed control motor Poorly adjusted reference idle speed
Here is some info on testing the mas air flow sensor.
If the engine stalls occasionally, start the engine and shake the MAF sensor harness. If the engine stalls, check for poor contact at the MAF sensor connector. If the MAF sensor output voltage is other than 0 when the ignition switch is turned on (do not start the engine). Check for the faulty MAF sensor or ECM. If the engine can be idle even if the MAF sensor output voltage is out of specification, check for the following conditions;Disturbed air flow in the MAF sensor, disconnected air duct, and clogged air cleaner filter. Poor combustion in the cylinder, faulty ignition plug, ignition coil, injector, and incorrect comparison.Though no AFS malfunction occurs, check the mounting direction of AFS.
USING VOLTMETER
NOTE:
When the vehicle is new [within initial operation of about 500 km (300 miles)] , the mass air flow sensor air quantity will be about 10% higher. Use an accurate digital voltmeter. Before checking, warm up the engine until the engine coolant temperature reaches 80 to 90 °C (176 to 198 °F)
SOunds good!
Please don't forget to hit the accept button if my answer has help you out in any way!
Please let me know if you have any further questions!