Print shifts by a really large margin after some layers

For some reason during printing in my artisan, the print layers shift by a lot after a few layers, and the print gets ruined. What could be a reason for this?

It could be code or mechanical. I am guessing the shift is in the X axis. Rotate your print 90 degrees. and print again. If it is mechanical the shift should still be in the X axis. For mechanical clean and re-grease the linear module screw. If the shift moves to the y axis look at the file, slicer and code.

Share your slicer, slicer settings, speeds and so on, please.