Is it possible to disable switch-to-space if that space doesn't exist?

I have two computers, and I sync my config between them. One has 4 monitors and one has 1 monitor. I have "each monitor has a separate space" enabled. So on the 4 monitor machine I have 3x4 for 12 spaces. I have ctrl+1 mapped to "move to space 1, 4, 7, 10", ctrl-2 to 2, 5, 8, 11 and so on.

Here's the problem. On my single monitor machine, when I press ctrl+2, I hear 3 system beeps. The same beep as if I press ctrl-4 (which is not mapped to anything). It seems like there's a beep triggered when I try to switch to a space which doesn't exist on this machine. I believe this only started since I upgraded to MacOS Sequoia.

Is there any way I can stop the beeps? My best guess was to try disabling the actions if the space doesn't exist, but I can't find a space count in the if conditions.