Lightmass crashed fatal error

Summary

after changing the max shadow resolution with the console command r.Shadow.MaxResolution whenever i try to build the lighting i get the error:
=== Lightmass crashed: ===
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Programs/UnrealLightmass/Private/Lighting/LightingSystem.cpp] [Line: 1458]

What Type of Bug are you experiencing?

Editor

Steps to Reproduce

unknown

Expected Result

unknown

Observed Result

cannot bake shadows

Affects Versions

4.27

Platform(s)

Windows

Upload an image

Additional Notes

i tried verifying the engine through epic games launcher and clearing the swarm agent cache and it still won’t work.

for some reason it only fails on the medium quality setting when baking lighting.