Check the battery cables both positive and negative. Also check all grounds on the car. This sounds like your voltage is dropping out and causing the car to die. I would also check the connections at the alternator and the power control center under the hood. All of these can cause the voltage drop out.
You may also want to check the cam position sensor. It can cause loss of reference and cause the car to stall.