If you are using Unity and Cinemachine, try making the Cinemachine confinement cube smaller. If not, I'd put blocks to the sides so the player sees blocks instead.