It seems to me that input / output signals connected to the relays got swapped in the confusion.
If I am interpreting your picture correctly, the brown wire connected to all of the relays connects to your M terminal and various yellow cables are your pump control wires / signals.
The connectors to which you currently connect the Brown / Yellow cables in your example photo are the relay inputs, and it seems that they are connected to the pump(s), which is wrong.
What you will need to do is swap the connectors around. Swap brown and White connections around (they are close to each other, so that should hopefully be easy), You will also need to swap where your Yellow wire and your zone wires connect (so swap yellow with blue on upper left, yellow with red on the next one, yellow and orange, yellow and brown zone...).
It's not clear how you have the four relays wired up on the top right group, can you please take a closer picture there as well.