Role of anomalous symmetry in 0π qubits