This is by design.
Limit switches can be different. Using "_home_swdist" value in G10 L9 will not be optimal. However if used just for return move it does not have impact.
In your case, to avoid X0 Y0 error you need to set "Switch Position" to X-1 Y-1.
I can explain issue in more detail if needed.