F11 (or tab'ing in and out) crashes packaged shipping game

I would love to hear what can cause this issue. I’m using a huge for loop in tick and if this loops gets 2 big (talking about 10k), my editor can also crash when spamming F11.