Have you tried to set the modsetting.lsx to read-only, so that this can't be overwritten? But be careful, every time you want to install a new mod, you have to take care to uncheck it first and put it back in again after saving/exporting, as long as this problem has not been solved. If the problem is solved, be sure to uncheck it completely.