Your probing positions are wrong? You do not want the bed to move in this process. You only have resolution to make a correction on one axis so that is all we should be moving. The bed, that is the second number should stay at 175. Half of 350. So you probe back and forth on the middle of the bed. If your bed is 350 x 350 your probe positions should be something like {{25,175}, {325,175}}. This will probe both sides of your X axis at the middle of the bed. Like in my video. Here watch my short video of how this routine runs: IDEX Dual Z Auto Align - YouTube

The error you are getting is because the probe can not reach the edges of the bed commanded by your probe positions. You need to look at your entered Z probe offsets in configuration.h and take that into account. For example if your Z probe has an offset on X of +25mm then you will obviously not be able to probe anything on X below 25mm and so your first probe position might want to be 30,175 and then 325,175 for the second.

Alternatively, if your Z probe offset were a negative number then you wouldn't be able to probe that amount on the far side of X.

So go look at your Z probe offsets and adjust your probing positions accordingly holding Y at mid travel the whole time or at least until you get a third or fourth stepper motor to gain resolution to make a correction on that axis.