Hello,
When you re-save permalinks WP makes changes in .htaccess file. If you get the errors check the code that you have in that file when you see the error and then re-save permalinks and check the file again and code that you have there. Compare them. Are there any changes?
Also, tell me what version of XStore theme and XStore Core plugin do you use?
Regards