I was getting this error message:

12:11 PM
{'code': 'key526', 'msg': 'PR_ERR_CODE_HAVE_LOST_STEP: Z-axis motor step loss was found.', 'values': ['RUN_G29_Z check last point res_z:(3.0479483695652103) out of lost_step_dis:0.5']}

Searching in the Internet I found some people with similar issue on K1 Max: https://www.reddit.com/r/crealityk1/comments/1avu42u/k1_max_anyone_getting_error_messages_when_trying/

Hopefully in my case I just move the bed to the bottom, cleared and lubricated the z-axis threaded rod and after restarting the printing process, everything worked as expected!