Check poor contact in ECM connector and EGR valve connector.
Is there poor contact in ECM connector or EGR valve connector?
Repair the poor contact in ECM connector or EGR solenoid valve connector.
Replace the EGR valve.