Layer shift after print head change

After spool 1 ran out, the system automatically switched to spool 2 as intended, but unfortunately continued printing with a 5mm offset.

However, a test ring printed later, consisting of 4 layers and all print buttons, appeared normal???

What is the cause and what countermeasures can be taken?

Please open a ticket and let them know:
https://snapmaker.formcrafts.com/u1-troubleshooting-request