my first guess is the fuel pump is beginning to fail.
the thing" that makes this hard, for me anyway, is the shifting in and out of neutral brings it back to normal.Is it throwing any codes and turning on the CEL at all when it does this? Or just loses throttle response completely? Is the pedal just 100% dead and doesn't do anything or does it feel like the engine lost power?
These trucks are "fly by wire". The throttle is all electronically controlled. It's possible that your TPS (throttle position sensor) on the pedal is shot and cutting out.