That certainly sounds like a problem I had for about a month and just "disappeared" by itself.
The throttle microswitch, the throttle position sensor and the potentiometer are 3 suspects I was going to tackle, but the car has not had the problem for over 6 months.
So I am just waiting for it to happen again.