Lightmass keeps crashing 4-26.2

[4.26.2] === Lightmass crashed: ===
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Programs/UnrealLightmass/Private/Lighting/LightingSystem.cpp] [Line: 1458]
Static lighting thread exception:
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp] [Line: 197]
Ran out of memory allocating 536870912 bytes with alignment 0
0x00007fff38f9a218 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff39018bd6 UnrealLightmass-Core.dll!UnknownFunction []
0x00007ff724b5e4e0 UnrealLightmass.exe!TArray<Lightmass::FTexelToCorners,TSizedDefaultAllocator<32> >::ResizeGrow() []
0x00007ff724bd2723 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() []
0x00007ff724bb8eb4 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() []
0x00007ff724bb41b3 UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() []
0x00007fff393ad547 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff393a67c0 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fffe2d27034 KERNEL32.DLL!UnknownFunction []
0x00007fffe3f02651 ntdll.dll!UnknownFunction []

0x00007fffe1a04f69 KERNELBASE.dll!UnknownFunction []
0x00007fff39392d56 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff39396407 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff39157b1d UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff38f9a240 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff39018bd6 UnrealLightmass-Core.dll!UnknownFunction []
0x00007ff724b5e4e0 UnrealLightmass.exe!TArray<Lightmass::FTexelToCorners,TSizedDefaultAllocator<32> >::ResizeGrow() []
0x00007ff724bd2723 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() []
0x00007ff724bb8eb4 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() []
0x00007ff724bb41b3 UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() []
0x00007fff393ad547 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fff393a67c0 UnrealLightmass-Core.dll!UnknownFunction []
0x00007fffe2d27034 KERNEL32.DLL!UnknownFunction []
0x00007fffe3f02651 ntdll.dll!UnknownFunction []

0x00007ff724ba8966 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::MultithreadProcess() []
0x00007ff724b77c04 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::FStaticLightingSystem() []
0x00007ff724b2a339 UnrealLightmass.exe!Lightmass::BuildStaticLighting() []
0x00007ff724b50d57 UnrealLightmass.exe!Lightmass::LightmassMain() []
0x00007ff724b6fdc3 UnrealLightmass.exe!main() []
0x00007ff724bd88b4 UnrealLightmass.exe!__scrt_common_main_seh() []
0x00007fffe2d27034 KERNEL32.DLL!UnknownFunction []
0x00007fffe3f02651 ntdll.dll!UnknownFunction []

Specs if you need:
Ryzen 7 3700x
RX 580 8GB
32gb 3200mhz

The error is right there. You need more RAM. Even moderately sized scenes might need 128 GB these days.

Or open up world settings, check “force no precomputed lighting,” and turn off static lighting on all your objects. It might be the better option, TBH.