Try disconnecting the throttle position switch then see if it goes.
I had this years ago on a zetec and it was that,I think it gives a false reading to the ecu or something.
Otherwise get the codes read first,it could be literally anything,low fuel pressure,dodgy crank /cam sensor,injector,fuel pump,wiring.