Check for engine vacuum leaks and check the idle air control valve (IAC). Both codes you listed are for a lean mixture which means you are getting too much air to the engine and not enough fuel. Most commonly, this is caused by a vacuum leak. That could also what is causing the engine to stall at an idle.
If you have the 5.4L V8, there is a vacuum hose on the rear of the throttle body that has a 90 degree bend in it. They commonly dry rot causing a vacuum leak. Check for that and any other leaks.
Wednesday, June 26th, 2013 AT 7:19 PM