The knock sensor works by measuring transient frequencies. Think vibrations, so mods can confuse it... Like strong motor mounts, etc...
Also, it is a shielded wire, so if the shield ground is messed up, there will be problems.
Maybe it's a good time to do a DIY ground kit... Might help.
This can be disabled by chipping the ecu also.
-PHiZ