Usually after starting the engine the car idle for maybe 2 minutes then the engine gets off or when driving as soon as I release the accelerator preparing to stop it switches off
My car has 2190000 miles.
My car has a manual transmission.
This is likely a sign of an idle air control valve that is not working properly. As you may know, this regulates the air intake as it is mixed with fuel prior to being injected into the motor. When this is not working properly, the engine will struggle to idle as you describe. I would recommend having a professional from YourMechanic come to your location to diagnose and repair your idle air control valve.
Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Fair and transparent pricing