ur242 feedback from loopback using guitar

I’m having a hard time using the loopback function while using an electric guitar plugged into input 1. I get squealing feedback when I turn the loopback option on. Loopworks works fine when I’m just messing around with vst’s in Ableton, but when I try to play guitar with the intention of recording it in OBS and maybe live streaming in the future, I get squealing feedback. Is there a solution to this? If I use the 3rd or 4th input there isn’t a gain knob or hi-z option.