Thanks for using JA.
This could be caused by a dirty throttle plate, and or a semi plugged injector.
Get a fuel induction service done, and if you haven't replaced the fuel and air filter yet
go ahead and do that.
The EGR orifice were the egr mounts to the engine could be plugged up with carbon deposits. remove the egr valve, use a wire hanger and clean through the hole . use few drops of trans fluid just few drops and start the engine for few seconds. it'll be loud. so the tubs clear up. repeat with the wire hanger. install the egr valve. reset the codes and try that.