not sure if this will help but my 2001 grand prix did this and it ended up being the spark plug wires. but mine was a little more excessive then just a few hundred rpms. so i switch out all my coil packs and all new plugs and all new wires and the problem was fixed. i would be accelerating and out of no where it would basically die out but never to the point of full stall. it would always stay running just acted stupid. they told me it was probably a short somewhere in the spark wires, cut wire or something but never found.