Were the current and prior injectors pop tested?
If the timing is too far advanced it will knock bad enough to almost make it sound like a Powerstroke.
If the DMF is going bad it will sound like someone shaking a paint can with some large nuts and bolts slamming around in there.
But if the injectors are popping off at different pressures the DMF will produce some noise indicating uneven combustion events.
To check the DMF for wear, remove the inspection cover and with the transmission in neutral, try to rotate the portion of the DMF containing the ring gear. It sould not have no more than 1" of travel, any more than that them the DMF is needing replaced.