When creating a new world, change the world type from "Infinite" to "Old." This locks your world to the classic 256x256 boundary size.