Is seems like you got some misspelling in recipe name. When I added
"if recipes[v.name .. '-' .. j] ~= nil then"
check on line 13 it stopped throwing error and loads game but also does not unlock any recipes. I guess best way for you to reproduce it is to start new "Rocket" game (when all techs are unlocked from the very beginning) with your mod turned off. Then save game, turn on your mod and try to load that save file. You should be able to see the same error as myself because it will try to migrate existing recipes.