This probably wont be much help but my sister in law had a similar problem with her car, it never stalled on her but she had a bad O2 sensor(I believe) next time I talk to her I can ask her which one or what exactly the problem was I hope you can get this problem fixed soon!
Edit: Talked to my brother about it said it was the mass air flow sensor, not sure if it sent a code but it would be something to look at. I hope this helps!