Give yourself a trident with high-level riptide, for example, 32767.
/give @s minecraft:trident{ench:[{lvl:32767s,id:67s}]}
Throw it, then you may find that the game stops but the sound continues, maybe it's a dead loop, but not crash.
Related issues
Comments

NOT a duplicate with MC-10755, not solved. Please make it unresolved.