Egr valve is stuck closed, things you can try for the 0400 and 140b code, check your air filter(clean or replace, clean maf) sounds odd but the flow is calculated by air intake flow.
The Exhaust Gas Recirculation (EGR) valve is controlled by the Engine Control Module (ECM). The ECM controls the EGR valve by supplying a 12-volt pulse width modulated signal to the EGR solenoid low control circuit and 12 volts to the high control circuit. The ECM monitors the EGR flow performance when the EGR is active by comparing the desired Mass Air Flow (MAF) to the actual MAF. If the actual MAF is less than or greater than a calibrated threshold level the amount of detected EGR flow is out of range.
Some of the causes for the dtc
Contamination on the MAF sensor element
Restriction before or after the MAF sensor
Skewed MAF sensor
Aftermarket air filter
I’ve had a AFE Dry OEM replacement air filter in it for about a year. Have had no issues up till now with this situation. But have noticed it regening more often the last couple weeks
Egr valve is stuck closed, things you can try for the 0400 and 140b code, check your air filter(clean or replace, clean maf) sounds odd but the flow is calculated by air intake flow.