Should be fixed properly now, it was the same issue as earlier. I ended up rewriting some code logic entirely to make sure it doesn't happen again.
It worked fine when I tested it before multiple times earlier, but somehow the crashing returned for me now as well hours later. I'm honestly pretty confused how that happened.
Sorry for the confusion!