It's probably not getting enough fuel. Check the fuel filter but more likely the fuel pump.
In addition to lack of fuel it could be a monster vacuum leak. Does this condition improve as the engine gets to normal operating condition? I struggled with a leaky intake manifold gasket for two winter season. After six trips to local mechanics and as many reasons it was discovered at the local Lincoln dealer...by
accident. Vehicle has 180k miles now and starts, idles like new
A modern car's gas tank is designed to have pressure in it. If it does not have pressure, the car could stall. That is one way to keep gasoline from evaporating into the atmosphere.
Usually caused by one of two things: Lack of fuel or too much fuel.
water in gas tank
gas can't freeze
The most common reason for a car to stall is a lack of fuel. The gas tank could be empty or the fuel injectors. Need to be cleaned.
Running out of gas, timing chain breaks.
My car has done the same thing and i found that old gas was the only problem
It could be need of a tune up or a gas filter.
I would suspect a lack of fuel pressure, replace fuel filter, check fuel pump.
A 1998 Honda Accord could stall because it is out of gas. The car could also stall because of a bad computer.