GPU Lightmass Error: Array index out of bounds

I’m getting the following error. I have tried clearing and validating the swarm cache I have tried enabling and disabling bForceNoPrecomuputedLighting and I have checked to make sure my ram isn’t getting maxed out. What is causing this?

LoginId:20363af0440bc3c67ce54c8eda08819b
EpicAccountId:130fe64228b34bcf82c390caf5c07edf

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 1095]
Array index out of bounds: 2 into an array of size 2

UnrealEditor_Core
UnrealEditor_GPULightmass
UnrealEditor_GPULightmass
UnrealEditor_GPULightmass
UnrealEditor_GPULightmass
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

It was because I didn’t have ‘Path Tracing’ enabled in the project settings.

This has started happening again same error this time it’s only on one level though despite all my lightmass settings in the world settings being at default.