Never done bed leveling the way you are doing it
Found a link for you to look at
[github.com]
I added the following boundaries and the code did compile
// Set the // Set the boundaries for probing (where the probe can reach).
#define LEFT_PROBE_BED_POSITION 10
#define RIGHT_PROBE_BED_POSITION 210
#define FRONT_PROBE_BED_POSITION 30
#define BACK_PROBE_BED_POSITION 190
// The Z probe minimum outer margin (to validate G29 parameters).
#define MIN_PROBE_EDGE 10
I believe the Boundaries are required to use Z Safe Homing
Found a link for you to look at
[github.com]
I added the following boundaries and the code did compile
// Set the // Set the boundaries for probing (where the probe can reach).
#define LEFT_PROBE_BED_POSITION 10
#define RIGHT_PROBE_BED_POSITION 210
#define FRONT_PROBE_BED_POSITION 30
#define BACK_PROBE_BED_POSITION 190
// The Z probe minimum outer margin (to validate G29 parameters).
#define MIN_PROBE_EDGE 10
I believe the Boundaries are required to use Z Safe Homing