Collective Spin-Cavity Ensembles and the Protection of Higher-dimensional Quantum Information