Am I correct then that you did not home the machine in the first place, and therefore are in the lockout since it doesn’t know where it is?
With the machine off you should be able to move the axis to the homing locations and place the switches there. It doesn’t matter where you put them, as long as that is the corner you intend to home to. I for example home to front right. The last 2 screenshots are my homing screen, and show you how you would dictate which corner to do, also what order (do z first regardless).
Moving X Axis homing location 1F Elite - Unsanctioned Enhancements