Try cleaning out your throttle body, no idea if this actually works tbh - some people claim it fixed the problem in the comments.
I've experienced similar behavior .. but mine was due to spark plugs, coil packs, and battery due for a change.
But perhaps I should consider cleaning out the throttle body too ..