When we use potions or the command / effect with some effect that kills the player but of high level the game closes
Steps to Reproduce
1.Use the command / effect instant_damage (any duration of time) Level 0. As you can see when the player dies by the effect the game closes