I have seen a bad alternator cause this problem by having a bad diode so it will charge AC voltage. To check for this, you can remove the drive belt and start the engine to see if it runs longer, here is how the job is done in the images below. Also, can I ask if the security light is flashing? Please only run the engine for a short time so it doesn't overheat.
This guide can help as well:
https://www.2carpros.com/articles/stall-at-idle
Check out the images (below). Please upload videos of the problem so we can see what's going on.
Images (Click to make bigger)
SPONSORED LINKS
Wednesday, December 27th, 2023 AT 5:24 PM