To understand an engine that stalls as you stop, compare it under normal, safe conditions: cold versus warm, idle versus steady speed, and light versus higher load. Record whether it stalls while braking, turning, or switching on an electrical load. Change one condition at a time so the result stays useful.
Do not create a risky test just to reproduce it. Check stored codes and inspect for loose intake or electrical connections before replacing parts.
Quick educational note
For information, not a diagnosis or repair instruction. Vehicle-specific checks are still required. Consult the manufacturer's guidance and a qualified technician.
How to use this information
This article explains general principles and does not establish what is wrong with your vehicle. Read the content limitations.