It could be due to poor internet connection. Check your Wi-Fi signal or try a different network. Also, make sure your Switch has the latest system updates installed.
Maybe it's a technical glitch with the game or your Switch console. Try restarting both and see if that helps.