I was just doing some random stuff on a flat world like normal, until I started messing around with some enchanted dirt I got through
a command. Hitting multiple pigs with that dirt in a 1x1 hole causes the crash to happen.
Just spawn many pigs in a 1x2x1 and get the dirt with this command - /give @s
dirt[minecraft:enchantments={infinity:255,knockback:255,sharpness:255}] - and hit the pigs with it.
Environment
Alienware Area-51 R5, Windows 11 Home (x64)
Thank you for helping us improve Minecraft! We saved your files: