I've lined parts of my cabinet with that foam the misses uses for her yoga mats. She didn't notice she has loads 😅
The worst offender was the bolts, they stick out a fair bit, so I've covered them with blanking caps, similar to old style photo film canisters, and I now keep my guns in socks (if they fit in one).
The worst offender by a long shot was the bottom, that's scratched a lot of guns
Super soaker 3000 (water), nerf fang (foam), noisy cricket (energy), m41a pulse rifle (10x24), Gat gun (.177)