Yep must be gearbox related if stepping on the pedal affects it. Did you remove the pedal switch and inspect it?
Just been reading on other forums about other cars not revving past 4k rpm in Neutral etc and found this gem on the M5 F10 forums
"Why would anyone want to rev an engine past 4k rpm in park?"
OMG, if only he could see us lot
No, exactly where is it? easy job or a pain?
Well done lads,
So if I'm reading the above right the brake light switch has jammed on, the brake lights would be on too? And it's the engine management saying that the car is braking so why go over 4000rpm?