Listen, if you absolutely insist on shimming it up to fit tight, at least have sense enough to ignore the awful electrical or teflon tape advice. Electrical tape is soft and squishy and the adhesive never hardens so you wind up with a goopy mess. Teflon tape is designed to be slippery, the exact opposite of what you want. So if you must- and again this is not the way to go - but if you must then use heat shrink tubing.
But what you really should do is support the cable, preferably with something like a cable cradle that both supports and isolates, in such a way that it will stay put even without having to be crammed in so tight.