Are you sure you have all the sensors and hoses plugged into the BAT pipe properly?
I had to seal my IAT sensor in there with silicon. I also had issues with the pipe that comes from near the IAC on the right rear of the UIM to the BAT pipe. If this tube is not on tight...the car will stall instantly. When the car heats up so do all the materials in the engine bay...maybe try using a clamp on this tube.
Also check your engine air filter. This is just to the left of the IAC on the rear of the UIM. If this gets dirty...the engine will stall as well.