2016, at the beginning my 2004 Xterra SE gave codes for the Catalytic converters, Nissan graphed them and they were fine, not 100% but not below threshold either.
Then code 328 KS showed up, relocated it (NEW) to the top of engine the code never came back. After 2 months or so while driving at night from work within few minutes my Xterra started to stall a bit or chugging, I stopped, restarted Engine light came on (CODE 0500 for speed sensor) (REPLACED IT), fine for a week or two, then again until now (intermittent) days or weeks before it does it again.
Meanwhile, I replaced plugs, wires, distributor cap and rotor, the chugging still persist, replaced fuel filter, chugging still there, replaced MAF, problem still persist (while the driving I will not stop, but switch to neutral and then back to drive) is ok for a few days, then again. Replaced fuel pump and cleaned the fuel sending unit, I've notice the Xterra was running better and more power and thought I finally fixed it, but 2 days later it did again.
Nissan couldn't find the problem, a transmission place thought it was a neutral switch, replaced it and immediately after leaving the shop it did again but worse (shop refunded the labor cost), another shop had it for almost a week, didn't act up, but did it again that night after work.
I ran out of options, I have no idea of what to do next since the dealer itself can't find the issue.