Setting the spawn point near the positive corner of the world causes the game to freeze during loading
Reproduction
/setworldspawn 29999980 100 29999980
Reload the world
The game freezes during loading.
Code analysis
MinecraftServer waits for a hardcoded 441 chunks to be loaded around the spawn point when it's started but that never happens in the +, + corner of the world.