Run some fuel system cleaner through it, even on a newer truck, and it makes a difference in how smooth it will run.

FRP may also be a culprit as to why you're having this issue sporadically from what I've read (not a diesel expert, so take that with a grain of salt but worth looking into).

I also had a friend that had a similar sound as yours (almost identical), and it was his fuel pump.