Interior cubemap Adjustment

I’m using the scene capture cube to capture a hallway that goes straight ahead but after so far it starts putting the walls, floor and roof on the back face and it looks fine from the front but if you start looking at it from other angles it has a weird bend to it and looks off.

So I wanted to know is there a way that I can adjust the interior cubemap so I can show the full hallway?