I added a datapack that can cause the first crash, and the crash report.
Minecraft expects an object (curly brackets), but is given a string. Using a 'simple_random_selector' with only one object provides an awkward workaround.
I added a datapack that can cause the first crash, and the crash report.