my car has done that on 3 separate occasions
once it was the crankshaft sensor, once it was the camshaft sensor, both of those are like $40 each & simple to fix ([email protected] shop)
the othe time it was an air leak in like the egr i think its called & didnt pull any codes
does it seem to stall when your going slow or slowing down? thats what mine seemed to do
hope this helps!