Carefully bend the wires back, and wrap a small piece of electrical tape on the base, the fold the wires back.
I find this works well, and keeps bulbs from popping out of the spotlights.
Scroll down the pics to see what I'm talking about, they're closer to the bottom:
https://www.pinballbulbs.com/installs/spotlight-kit-installation