Parameter Estimation and Forecasting Using the Gali-Monacelli (2005) Model

The error above has nothing to do with the changes in the mod-file. It’s related to write access on Windows, typically if you are working on cloud-synchronized folder. See e.g.

Your mod-file has the problem that you have more observables (5) than shocks (3).