The following three problems are possible. (1) The microcontroller switched to the STOP mode. (2) Attached water droplets and frost caused leakage on the crystal oscillator connection pin. (3) The crystal oscillator was damaged by external factors such as shock.