I've been having this issue for a couple months. I thought the P0171 and coolant loss was from my LIM. Well I replaced the gasket and UIM but it still has this P0171 code.
Sometimes on acceleration it jerks like it cut off fuel for a second and sometimes while going through a turn at the light that requires to let go of the gas or sometimes at the lights it just stalls out. I turn it back on but I have to give it gas for a bit to prevent it from stalling again.
The SES light for P0171 usually comes on after these events. MAF or vac leak? I cleaned the MAF while doing the LIM fix with electronic parts cleaner.