I finally got to play the amp at the same location and the noise was there again

Amp cranked up through an attenuator set to very low volume was perfectly fine at home for hours.
At this other place the amp cranked up through an attenuator that was also cranked up created noise. Since the attenuator level was the only setting that was different I thought it might be the speakers, but it didn't seem like it. Eventually I resorted to an old sophisticated debugging technique: frustrated, I slammed my fist on the amp head cabinet. And...noise disappeared... I started sparring with the cab and it was definitely reacting to my devastating blows. (BTW, the amp head was not on top of the speaker cabinet, it was on the floor next to it).
After I delivered a few good punches the amp threw in the towel and it started behaving exemplary. This process repeated about five times at short intervals, all in the beginning - static noise, then fists, then nice and quiet. Then after a few minutes, again, noise, fists, quiet. I ended up playing it for hours without any issues anymore after the initial fights. I kept punching it so that I can see if I can induce the noise, but nothing, no more noise.
I'm thinking that it must be one of solder joints from when I modded it, but then I probed them all with the amp on and there was no reaction. And why didn't it get noisy when I was punching it later on...? If punches remove noise, shouldn't they also induce noise?
Or maybe it was something that wasn't working in the beginning, before the amp warmed up properly...
The other thing, most likely unrelated, is that after the mods, which are designed to give it more gain, it sounds harsh, like a pedal that's clipping. I don't know if that's by design, or if it's a bug that I introduced.