Crimp terminal insulation of exposed leads
If your design may lead to loose components or terminals, consider changing your mechanical design.  Secure the components and connections with fasteners suited to the job - whether it's nuts and bolts with locking washers, or double bolts, or a particular adhesive. Make sure all ring connections are not only mechanically and electrically sound to each other, but to the enclosure as well.  You shouldn't have "floating" ring connections, they should be terminated to a terminal block or otherwise mechanically attached to the enclosure so they do not move inside the enclosure.

If you feel the need to also protect any exposed conductors, select a suitable silicone conformal coating. These can be UV or heat cured, and once cured can withstand a great deal of heat, vibration, and other typical environments without falling off.  Be sure to use the minimum necessary to coat the conductors, too much will add unnecessary weight, and under some conditions, such as strong vibrations, the additional mass may allow it to fall off the protected component.

Further, silicone conformal coatings are easily removable and replaceable without chemicals, unlike some epoxy compounds.