I got an "Assetion failed: (Index >= 0)& (Index <ArrayNum)" on my build proyect

I am creating a spline mesh on run time that requires to be checked by a raycast. On the editor I got no issues but in the build happen the error:

Assetion failed: (Index >= 0)& (Index <ArrayNum)

it only happen when I change the settings off the node “Add spline Mesh Component” Collision> Collision Enabled to any other that isn´t “No collision”

I think you are trying to write or read data from an array beyond its allocated size in memory.

stack overflow

What is a stack overflow error?.

I think you need to review your code and fix that problem

Actually I found that this is an issue on the current version of unreal Iwas working on 5.0, is has been resolve in the new version 5.1

Yes, version 5.1 was released with many bugs. The stack overflow should be in their code and not in your code then.