I would expect, if the problem were with the feed voltage, that codes would be present for both sensors and maybe other things run off the same regulator internal to the PCM. That said, it may be possible that the knock sensor is shorting internally or that the wires feeding the sensor have rubbed spots where they're bare and making contact with one another.