Error terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'

That is an error message related to write access problems, triggered e.g. when operating in a cloud-synchronized folder. It often goes away after restarting Matlab.