The following worldgen datapack causes the POI system to get crazy and the game to explode.
To reproduce
add datapack
enter game
/execute in rift:fail run tp 0 260 0
igloo at -64 260 0 will attempt to place blocks above the build limit messing up POI system with a bed location.
After dissecting the issue and the json file, figured out what's going on:
the game tries to place igloo at the top of the world, which in this case would result in placing a bed above the build limit, which makes POI system crazy.