Topological defects as relics of spontaneous symmetry breaking from black hole physics