Unexpected loop termination


I have a blueprint array of vectors that contains 15528 elements. I loop over all of them (tried both for loops and foreach loops) adjusting their values using “set array elem”. for some reason the loop terminates after element 12326. When that happens in a construction script, it just terminates the rest of the script is not executed. I tried putting it in BeginPlay event instead, which causes application crashing.

Any Help/Idea?