looks like you had the software endstops set (you can disable them for testing)

the Z motor sounds like software problem if you swapped the driver over and it's still doing it, you should have your Z axis speed set LOW in marlin (DEFAULT_MAX_FEEDRATE) if it's to fast it can jam the nut in the threads, have you also set the steps per mm for the z axis ?