Check the signal at its source
What P0402 actually reports is a condition of the EGR system: the circuit is not reporting a plausible signal to the control unit. Treat that as a starting point for investigation, not a verdict.
How to tell the paths apart: Read the live data and compare it against the expected range for current conditions before replacing anything.