You could write a small gcode with z moves and some xy moves in between for testing. That should work. Then add more and more of the print gcode making problems in the beginning until the problem reapears, then you know which commands cause the problem which should help finding the reason.
During prints, the Z axis does not move and this causes the layers to print on top of one another. The nozzle ends up digging into previous layers.
Problem: Z-Axis doesn't work during a print. It attempts to work, maybe climbs on the Z-Axis, but screws back down. It whines, too. But, Z-Axis DOES work while not printing. It doesn't matter if the bed and nozzle heating or not, if it's not printing, it works as it should.
The Z-Axis just seems to be completely disabled during prints. Here's what I tried (none of them solved the issue) Swapping the X an Z axis to see if the stepper motor is broken. Resetting all my settings. Inverting the Z-Axis. Trying new G-Code from Cura as well as the sample G-Code models included in the SD card.
I would test to see if your Z is moving backwards - with Z=0.3 I could see it was printing about half way up - if you move to z=10 it should move the bed down. Does it? I'm hoping it moves the bed up. If so then you can simply swap Z direction (several ways to do that) and swap the end stops.
.
z axis not moving during print