This is a Mojang server or launcher issue. I implemented a workaround until they fix it. I didn’t realize it was as bad as it is. Sometimes I could still connect. I re-logged in and could connect to other servers, so that may be a client-side workaround if you want to test that with another server.