Layer shift is mainly caused by overheated or defective linear modules.
I get this if i print really fast with a lot of stop and go moves or micromovement.
There are several threads about layer shifting in the forum. (There could be a missplaced thermal pad in the stepper electronic)
What slicer software did you use?
What settings did you print?
Is it only the shown model?
Share the gcode?
Most stepper motors have a maximum operating temperature of 80°C. The higher the ambient temperature, the higher the current the motor requires, and the higher the temperature the motor achieves. If your motors are getting that hot, you will most likely need to employ some sort of liquid cooling to each of the motors.
On my Ender 5 Plus I print ABS with an ambient temperature in the tent of ~42-45°C, I did need to increase the driver current by ~50%, and the motors remain below 60°C, but I do have to leave the bottom part of the door flap open to prevent overheating.
Are you certain that the ambient temperature is 40°C? I don’t know what current the Snapmaker is running the drivers at, and I don’t think that they made the G-code current setting available.
Yes i am. But the moduls are getting hotter and hotter on long prints. While the enclose have 40°C the black cap of the linear moduls have between 70-85