Why does UE4 crash when previewing in VR?

Hi All. There is a recurring issue in the current project I am running. When I play it in VR Preview, the engine crashes.

At some point I found out that it was caused by the Sky Light. When the camera is turned toward it, the engine crashes. There was a temporary fix, to create a new level and reimport everything in, but once another change is made to the lighting, the issue appears again.

The error that I get is this:

LoginId:d4d5659e415a872f83a127afde29220d
EpicAccountId:de64c5fe034d4ff78255c958a20ddc76

Assertion failed: DebugData.bAllowRHIAccess [File:D:\Build++UE4\Sync\Engine\Source\Runtime\RenderCore\Public\RenderGraphResources.h] [Line: 112] Accessing the RHI resource of CategorizationTexture at this time is not allowed. If you hit this check in pass, that is due to this resource not being referenced in the parameters of your pass.

UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

Does anyone have an idea what could be causing this and how to fix it?