Thank you for replying. Regarding to the issue, the crash doesn't appear anymore on my main project. But I am having another issue now. The plugin seems to not work properly, tried to put the script on my main project then a new testing project. And I couldn't get it to work on none of them.
Despite I have put the script on both the spawning map and the map in which the event should appear, it doesn't seem to work. It's even more strange because I tried it on two projects; my main one with lots of plugins and a testing, clean project. I tried it in different ways including spawning the events on region ids and spawning them on coordinates. Not having luck for now.