Spatial effects on the speed and reliability of protein–DNA search