Restoring Intermediate directory

I deleted my project’s Intermediate folder in order to try and fix an issue ()which it did not). Now everytime I’m trying to save my project under a different name, UE crashes. Also, I get this error message in the log:
LogPackageName:Error: DoesPackageExist: DoesPackageExist FAILED: ‘None’ is not a standard unreal filename or a long path name. Reason: Path should start with a ‘/’
***this error probably have been there before I deleted Intermediate, but I cannot know for certain

*correction: I didn’t delete the whole folder, but only the Cache, Reimportcache, and Source subfolders

another correction: I DID not delete the ReimportCache subfolder.
THESE ARE THE SUBFOLDERS I DELETED:

Build
Cache
Source
Staging

I can only speak for the Mac OSX version and my own experience. I have to delete the entire intermediate directory to get it to rebuild. I have also had to start up from the Epic Launcher to get it to build the necessary library components and restart the editor. I don’t think that will help if you have a code error though. I have had to fix the code error first (back out the last set of changes manually, often with a separate editor such as VIM, the restart from scratch and let it build the libraries it is missing.