Kibble-Zurek mechanism and errors of gapped quantum phases | Synapse