Don't take damage, or the game crashes!

1+ players
(Resourcepack no longer required)
Minecraft version: 1.16.5

Exactly what it says on the cover! If you take damage, the game client crashes!
Why would you want to do this...? I don't know honestly...

You can also set it up in multiplayer so that if anyone takes damage, everyone crashes!