When I was wrenching at the Toyota dealer we had those problems too. If you got a Knock sensor code, guaranteed the wires were chewed off. Fixed lots of those problems. The other techs that had been there longer than me told me the reason was soy based wiring covering.
__________________
Custom CNC plasma cutting. PM me for your custom parts.