you need to zero the z axis.
depends on the firmware and slicer how you do it.

Usually it's through the control panel.
Is your z stop at the top or bottom of the machine ?

ie: what happens when you 'home all axis' ?