It is important to secure your wiring. That’s what cable ties are for.
When terminating cable, cut the excess off. Leave 8” like you do in receptacles. The excuse I always hear from industrial electricians is that the 6 feet of extra wire they spent 20 minutes bundling up in the panel is so they have extra to pull in case the end is damaged. I have used up a couple inches and even had to use barrel connectors to extend some wiring that was all but “grouted” in. But those same coils are still in those panels 50 years later. It’s simply laziness on the part of the installer. Your wiring should look like factory wiring.
During a fault loose cabling will jump quite far. Also vibration is a big issue in motor peckerheads. If you don’t route and secure your wiring eventually something will happen. Murphy’s law says that the sharp end of the screw exerts a powerful attractive force that will cause loose wires to move towards the screw and impale themselves on it. If there is any question cut the end off, reroute the cable, or secure something over it like a wire nut, wood, plastic, rubber...but regardless...see point 1. Secure the wiring in the first place and nothing bad will happen.
Clearances between open (unshielded) should be maintained. You can see what this is by paying attention to “open” terminals without phase barriers. With 600 V rated equipment it’s about 3:4”. In UL testing they apply a surge voltage (BIL) of 200% of the nominal voltage plus 1000 V so 600 V class wiring is subjected to 2200 V. Thus the seemingly large gap. The tiny 5 mils of PVC over #14 survives up to around 2800 V when dry and not punctured by a screw.
This falls under the “workmanship” rule that is almost unenforceable, but if electricians had as much pride in their work as they do in other things it would never be a concern.