Gauge-Symmetry Violation Quantum Phase Transition in Lattice Gauge Theories