I figured out a medium-short way to fix this bug where you disconnect in a lobby or even the game itself. Things seem to be going well every game you play, but then they follow up with a message kicking you out saying something along the line of:
"An unknown error has disconnected you," or "Sent 6 Pings the remote server could not respond to."
I've had this problem this entire week.
The So far working method I've found is to get a VPN. You don't have to buy one, but you can use one that has a free trial, like Proton VPN. Many other VPN's out there. I've been using it and I haven't disconnected even once.
There was also a bug where after a game was finished, I'd have to join back from a code because the screen would make sounds of other people joining in but not show me joined in (so I'd be glitched).
Ever since I've got a VPN, It's been going smoothly. I'm suspecting that the game is glitched from whatever NA server I'm playing in so I had to get a VPN to fix the problem.
Hope this helped!
Source: https://www.reddit.com/r/AmongUs/comments/v99zrh/pchow_to_fix_au_random_disconnects/