Relation between decoherence and spontaneous symmetry breaking in many-particle qubits