Usually that kind of feedback happens when either there is too much gain and/or volume, or the guitar is picking up something.
Like a Reload on top of the amp, if the amp is pushed hard, car get the signal from then output transformer of the amp.... :/
Usual recommendation is to try to work with the volume/gain to see if it helps, and to put some distance between the units.