Don’t turn off 2FA, it’s there for your protection. Moreover, that behavior is not caused by 2FA, because I have it enabled, and don’t have to deal with that every time I change servers.
So what is causing it? Dunno. Can only suggest generic troubleshooting steps, starting with fixing file permissions. Past that, you can try making a support ticket. I don’t think they’ll help you with test server stuff, so maybe leave that part out, and just mention that you frequently to input verification codes when you get on TQ.
And if you do get it figured out, please come back and tell us what you did. Might help the next guy with the same problem.