had the same problem on my ol 325i and it was the switch- on the pedal - worked fine but resistance /impeadance values are very fine and it would trigger the warning - replace it they dont cost much
I hadn't thought of resistance in the switch, only if it makes and breaks the connection.
Certainly worth a look, thanks for the tip.
"The gas pedal wouldn't go to the floor if it weren't meant to be there"