Godot-nim GDNative library is trying to unload all scripts when the user switches away from the editor window, resulting in crash https://docs.godotengine.org/en/stable/classes/class_gdnativelibrary.html#class-gdnativelibrary-property-reloadable
So to prevent this, you just need to uncheck Reloadable option in nimlib.gdlib
