UE5.3.2 crashes when exiting PIE, standalone is ok...

I have developed a problem with my project where every time I close the PIE I get a crash. I can play in stand alone just fine however. I have tried other project without any problems and this problem repeats in different computers / installs.

LoginId:df2da39d46f961fccb3e0a89a05a0d41
EpicAccountId:b40cd8d254904d34a9cc567913e9c5c8

Assertion failed: Index>=0 && Index<NumBits [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\BitArray.h] [Line: 1418]

UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
VCRUNTIME140
ntdll
ntdll
ntdll

Can anyone help me understand this error please.

I am still trying to figure this one out and I keep seeing that this Assertion failed: Index>=0 && Index<NumBits has something to do with an array that seems to be out of bounds. It seems to be only effecting this project.

Play in Selected Viewport and Standalone Game is ok
Play in New Editor Window (PIE) is the only time I can reproduce this Crash, and only when I exit the play.

Any ideas of how to help me find this error is much appreciated.
Thanks in advance!

Check your code and see if you have any array that is populating something, add Clear array before the population.