DIN MIDI is opto-isolated by design. Sounds like you have a ground loop between devices which is pretty common. Did you rearrange your power connections/strips when you MIDI synced the pedals?

Make sure your earthed devices share the same power strip.
Optionally, try non-earthed devices on their own strip (like the A4 and, I’m guessing, your pedals).

Try the setup with your monitors powered off and using the headphone out on your mixer to see if the loop is between your mixer and monitors or your sounds sources and mixer.
Are you using balanced cables and/or getting a good connection? Check for dirty jacks /sockets/broken cables etc…