So, one of your problems is that you're using "Erase event" - this erasure will be saved alongside everything else happening on the current map, so this event won't run when you load the game. You'd probably want to use a plugin that allows you to run common events on map load or something like that.
But either way, that advice probably won't help you if your game crashes on load. Now, I remember having some problems with OcRam Layers wrt game loading at the start of my project, and that I did something to fix it, but I'm not entirely sure what it was xD
Looking at the code, there is one notable change: adding a conditional on line 1106 to only set the layer if the image name isn't empty. Try replacing
setLayer(l._z, l_old_name, l._scrollX, l._scrollY, l._opacity, l._fixedToMap, 255, "loop:" + l._loopX + "," + l._loopY, "anim:" + l._animFrames + "," + l._animRate, "offset:" + l._offsetXY[0] + "," + l._offsetXY[1]);
with
if (l_old_name) setLayer(l._z, l_old_name, l._scrollX, l._scrollY, l._opacity, l._fixedToMap, 255, "loop:" + l._loopX + "," + l._loopY, "anim:" + l._animFrames + "," + l._animRate, "offset:" + l._offsetXY[0] + "," + l._offsetXY[1]);