All cheap potentiometers do that after a while. You can clean them with WD40, but eventually it'll come back.
Logitech uses an optical encoder on the DFP and G25 wheel, but for some reason not on the pedals. Optical encoders don't have noise issues, unless the encoder wheel gets clogged with dust (in that case you seriously need to clean your room lol).