Loop crashes

Hi All,
I am running a very large loop in which i change some of the parameters of my model.
However, most of the times this loop crashes with the following error:
Any hints?
Best,
P.
I am running a very large loop in which i change some of the parameters of my model.
However, most of the times this loop crashes with the following error:
Error: Can't open file two_country_currency_union_tn_dynamic.m for writing
Error using dynare (line 114)
DYNARE: preprocessing failed
Error in welfare_star_tn (line 49)
dynare two_country_currency_union_tn noclearall;
Any hints?
Best,
P.