I would begin by looking inside the controller for signs of a short or loose connection.Without knowing a bit more about the nature of the machine it isn't really possible to say more than examine all aspects of the module that controls the Z axis,including the coupling from the stepper.I would try -after removing the cutter-moving the Z axis in space to see if it does what it should.