What is wrong with these shadows?

What is wrong with my shadows? It’s like the lighting is completely ignoring the frame and reshaping the square shape of the window. How can I fix this and prevent it from happening again because I can’t comprehend how it could end up messed up?


Glass Material:

Increase your lightmap resolution on the meshes that are receiving the shadows.