I am no mechanic, but i had similar issues in another car a long time ago. It was a sensor, can't remember which one. My bet is a sensor for air or fuel is bad. Could try to go to parts store and have them run a scan on the car. Other than that go to the dealer. Maybe check them out for cleaing too, throttle body, etc. Again, just thoughts from experience.