Note: I tested this in a multiplayer environment, not sure if it also affects singleplayer.
If you enter /gamerule in the chat as an op on a multiplayer server, your client will disconnect without any apparent reason.
Also when providing parameters to /gamerule, the gamerule doesn't actually seem to be affected.
Linked issues
Comments


I just checked again and I'm still having the problem mentioned in https://bugs.mojang.com/browse/MC-83284 so I actually get the exact message that is shown in that issue's screenshot.
When looking in the client and server logs there is no notice of anything that went wrong, all I can see is that I disconnected, so I can't really give you more info than that...
What is the disconnect message?