Those switch wires are carrying 220 VAC. Even if the wires are twisted, they will still emit electromagnetic radiation. Magnetics (transformers, inductors and chokes) can pickup that noise where and become part of the audio. So no, the PCB mounting legs is not a problem. But currently the wire runs right next to you EQ inductors. If you can bring it out from under the board without disconnecting anything, try watching the spectrum while you move that wire around (being vary careful not to touch anything of course). Try moving it close to the EQ inductors or other parts of the boards and see what happens to the mains noise in reaction to that. Another thing you could try is to remove the switch and let it hang out the back away from the boards when you test.
Also, I don't know if I mentioned this before but you might see a small difference if you put the lid on when you test. You don't have to bolt it down but being steel it provides some electromagnetic shielding. Actually if it does make a difference that would be very interesting because we have to consider that the mains noise could be external such as because you just happen to be unlucky enough to be working right next to a power cable in the wall. If you ground it to the chassis with one screw or an alligator clip, it would also provide RF shielding but that's not the type of noise we're immediately concerned about.
Bo, I notice in the grounding layout you drew that the only connection from pin 1 of both XLR sockets is to the audio ground,
Audio "ground" is what I usually call 0V but sometimes referred to as signal ground. Then you have the chassis ground. The chassis and 0V should be connected at only one point through one fat wire between the 0V preferably right next to the 0V of the power supply filter capacitors and the chassis bolt on the back where earth ground is connected. At least that's how I do it and I test my builds pretty thoroughly and never had a problem (although I haven't built anything with a linear supply in years) and that's what we tell people to do around here and I don't see any reason to change those instructions at this time.
while at the PCB connection you have pin 1 connected to shield/drain of the cable. I have connected pin 1 at the PCB end AND at the XLR end. Pin 1 is also connected to the lug on the XLR. Should I remove this connection from XLR pin 1 to audio cable shield, and just connect the shield at the PCB end? Also, should XLR pin 1 be connected to the lug, or just audio ground?
Generally you usually don't have to worry about ground loops with shields connected to the chassis because it's all low impedance and there shouldn't be currents running through those. Exceptions might be made for phantom power and maybe power amps. What is important is that radio frequency EMI is most likely to get in on pin 1 and so you want to shunt that to the chassis over the shortest possible wire. That's why there's a separate chassis bolt for that. Some XLRs actually have a metal spike in the screw hole that stabs the panel and connects pin 1 to the panel for this reason. If you connect pin 1 to your shield and it's connected to the ground plane, then you might be letting RF it a little more than it should. But as long as the wire between pin 1 and the chassis is solid, I'm not sure the extra pin 1 to 0V would be a problem. At least I don't see how it could contribute to the mains hum. But again, you have multiple violations to deal with and it can be difficult to predict what is happening when you have multiple different problems going on.
I would do things iteratively and see what happens at each step so that if you see a change in mains hum you know which change made the most difference. If I were doing this I would gut the whole thing and just rewire it the way I have in the drawing. But for you it might help to understand these things (which is obviously why you and I and everyone else is here). So for now maybe leave them. Or not. But if you do disconnect those points, maybe just desolder and test first before you just cut.
I’ve tested the control PCB grounding, and the ground points are all connected, including the cable shield. There is also a ground connection between the two control boards, via points 8 and 10 of the wiring between the two.
I'm not sure you understood what I suggested. What you need to find out is if the grounds on the PCB are connected. Unless you desolder all of the grounds before measuring with your meter, there is no way you could know that for sure. It could be that the ground plane and 0V are actually not connected. If that is the case, then you will need some additional wires that I did not put in my drawing.