"Couldn't Save UI Layout" error whenever I close any layout file

Hi,
I recently had to reinstall windows and ever since that reinstall. whenever i close a layout file i get this error.
Thanks in advance