Hello and welcome to justanswer.com
The most likely cause of the rough running and lean codes are a collapsed PCV tube, leaking brake booster hose or a leak from the IMT seals. Listen for a hissing noise at idle from the right side of the intake. If you hear this then those two IMT valves need to be removed and the seals replaced. Also inspect that PCV and booster hose.