Cubemap distortion issue

Is there any way to avoid this exaggerated wall distortions when using longer plane for cubemap?

To make walls straight for longer cubemap spaces?

Thanks,
A