You stated that you are using Mach3. You may need to tune the accel/decel/velocity settings in the config for the Z axis. If too aggressive, you could be losing steps during the quick...