Online games require stable conditions to function properly. Your internet connection should be reliable, and you should avoid minimizing (closing) the app during gameplay. Similarly, your opponent should also remain active.
If you leave the game (e.g., to check notifications or open other apps), or if your opponent does so and doesn't return, the game room may be removed because the app registers you as absent.
To avoid crashes, ensure your internet connection is stable and keep the app open during the game.