that's exactly what would cause a lean error. You are drawing in air which the O2 sensor will see as un-burned oxygen and attempts to correct this by adding more fuel, which will have no effect, and eventually triggers a P0171, system too lean.I have one large exhaust leak at the flange where the J pipe connects to the factory downpipe, but that shouldn't trip a lean code, I'd think.