Possibly, the window is changing the temps (making it too warm) or not giving him a feeling of security because of too much light.