Unreal Engine chrashes when movie exporting

I get the following crash message/Log when I try to export a batch of camera’s:

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

UnrealEditor_MovieRenderPipelineCore
UnrealEditor_MovieRenderPipelineRenderPasses
UnrealEditor_MovieRenderPipelineRenderPasses
UnrealEditor_MovieRenderPipelineRenderPasses
UnrealEditor_MovieRenderPipelineRenderPasses
UnrealEditor_MovieRenderPipelineCore
UnrealEditor_MovieRenderPipelineCore
UnrealEditor_MovieRenderPipelineCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

I tried solving for over an hour but just cant find the problem. Does anyone know how to fix this bug?