From what I see, it is really the old version, i.e. all modules are interchangeable. The GCode looks sane, and at the start of the print all looked good, then suddenly the X-module displaces. I remember that Snapmaker had problems that in some linear modules the silicon block for cooling the stepper driver was missing ( Z linear module not working correctly - #4 by brent113 ), and the stepper driver overheated at some point. You can see the “should be” state on this post’s image: Preorders delayed and new orders ship - #35 by lemmong - the light blue/purple-ish pads are what I mean. Perhaps check if you suffer from that…
Oh, and of course important question. Have you updated the firmware to something current?