I registered just to let yall know I was also having both the P0171 and the P0174 on my 2005 V8 and it was indeed the fuel pump.
Had propane running into my intake and noticed everything basically was going back to normal, so I figured it was starved for gas. Fuel injector cleaner didn't do...