Sounds like one of the end stop switches.
With the Nozzle in the center of bed send

M119 - Endstop States

Then check each end stop pressing the switch and sending the End-stop States code.