Crash on build lighting in 4.20

I’m getting the same error as this ticket which was marked resolved:

UE-61492

Fatal error: [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 1502] Shader expected a uniform buffer of struct type SceneTexturesStruct at slot 3 but got null instead. Rendering code needs to set a valid uniform buffer for this slot.

Is there a way to find out which material is causing this? Worked fine in 4.19.

This happens consistently in 4.22 if I open a particle system in cascade, where one of the emitters uses a material with a custom node accessing SceneTexturesStruct. The custom node line in question is:

Texture2DSample(SceneTexturesStruct.CustomDepthTexture,SceneTexturesStruct.CustomDepthTextureSampler,UV);

Seems to work fine in-game and in the material editor, crash only happens for me in cascade.

I’m also getting it in 4.22 by using a Particle System placed in the level, where the emitter’s material Domain is set to Volume, in conjunction with a DepthFade node (which uses the scene depth internally)
I’m not using any custom node at all