I had this exact same error today, same unit userscript line, same cell, also SkyrimVR, also Open Cities. After a LENGTHY process of elimination, I can state with COMPLETE confidence that this error is not related to the bashed patch or to any mods with errors reported in xEdit. It's definitely a problem with Open Cities/DynDOLOD/SkyrimVR. I did follow the instructions in the manual for dividing the generation of static and dynamic LODs. If I change nothing else except removing Open Cities, I can successfully generate LODs again. My bug report is below. I hope this information is helpful. https://pastebin.com/CFgq7X5t