Failed to connect to server

when i try to play a game it connects really quickly but just says joined game for a few seconds then it says failed to connect any reason why that would be?

Sounds like a connection issue between you and the servers. Whatever server it’s trying to assign you to has something happening along the way.