OEM parts are the best thing you can do for these trucks. I have heard (not seen personally) that the capacitors in the ecu will start to leak and can cause the knock code. There are two major parts the the knock circut.
1. The signal wire- you already checked this but all so verify that it is not grounded in any way.
2. The shielding - Need to verify that this is not broken and is ONLY grounded at the ecu end.
My understanding of the knock circuit is it may only output voltage when it is pinging. Unplug the sensor and run the truck. Does it still throw a code?
I found this you tube video that explains how the sensor work and how you can test them.
https://www.youtube.com/watch?v=L8xRJIWkHuo