I was recently kicked out by the console with reason like "Invalid or Unapproved use of modifications?" while I was moving my fishes from my inventory to the fish menu/scale.
Mod Link: https://www.curseforge.com/minecraft/mc-mods/inventory-profiles-next
My suspect was due to the mod...