Unreal crashes when I render

Hi,
I’m currently trying to make an animation in unreal engine, however everytime I try to render a scene with the Movie Render Queue the editor crashes and I get this :

Assertion failed: ScratchBufferRequiredSize + ScratchBufferOffset <= ScratchBufferSize [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12RayTracing.cpp] [Line: 4528] BLAS scratch buffer size is 32328960 bytes with offset 9272864302336 (9272836810752 bytes available), but the build requires 5935616 bytes.

UnrealEditor_D3D12RHI
UnrealEditor_RHI
UnrealEditor_Renderer
UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

This doesn’t happen when I use Movie Scene Capture.
I’m pretty knew to unreal engine so I don’t really know what this mean.
I don’t know if it’s important but my GPU is a rx 6700 (10gb)

Does anyone know what is the problem and how I can solve it ?