Wrapping your wiring harness in capsaicin tape works pretty well. Unfortunately, this is a discovery I made after multiple annoying and expensive repairs.
(They can’t taste capsaicin, though now that I know that exists, I’ll pick some up for other projects!)