It appears to be caused by an infinite loop that continuously eats memory, something is growing endlessly
EDIT: Found it! When looking for random events, w_map_random_ivent_VAR_shuffle() checks if len(ended_w_map_events) == len(w_map_random_ivent_VAR), but at some point, Aska_map_ivent was added to ended_w_map_events, which enables the lengths to not be equal, if somehow w_map_random_ivent_VAR is reset to it's initial definition. To fix it, just do w_map_random_ivent_VAR.append("Aska_map_ivent") in the console