So the system thinks the exhaust is lean, so it wants to add fuel, this is why you get the smell. This can be caused by the engine misfiring, or you have a leaky fuel injector which would cause double trouble (misfire and stinky exhaust).
P0171 - System Too Lean (Bank 1)
I would go over these guides, both will help you understand what is going on. Then I would remove the spark plugs and look for one that is black, this will be the cylinder that is having the issue.
https://www.2carpros.com/articles/repair-lean-mixture-codes-p0171-or-p0174-on-some-manufacturers
Does your engine have an exhaust leak? This can cause the computer to run rich.
https://www.2carpros.com/articles/engine-misfires-or-runs-rough
This goes over the reasons for a misfire, but I can walk you through the steps to fix it if you get back to me on the spark plug condition. Check out the images (below). Please upload pictures or videos in your response.
Thursday, July 10th, 2025 AT 12:57 PM