blueprint loops crashing before limit

I’m working on a grid based fog of war system, and I’m trying to create a visibility cache for the tiles. The problem is once I get past 8.5 million iterations it just stops, no errors or warnings, the launch stops and the cpu drops back to idle.

I have set the loop limit to the maximum (over 2 billion), no luck there.

I am only doing this once on my machine, then saving to a file that is loaded with the level on the final build, so I don’t care if it takes a few minutes to run.

Right now it is working perfectly as long as I keep the grid lower than 5454 (each tile has to check each other tile against the max view range, then do a line of site check, so 5454: sqr(2916)=8,503,056 iterations). This takes about 30 seconds to complete. But any larger and it just silently fails.

Is there a work around? And would I have the same problem if I switched to c++?