OneDrive and Sharepoint - Prohibited File and Folder Names

Invalid characters
Characters that aren't allowed in file and folder names in OneDrive for Business or SharePoint: 
 ~ " # % & * : < > ? / \ { | }.

Invalid file or folder names
These names aren't allowed for files or folders: 
.lock, CON, PRN, AUX, NUL, COM0 - COM9, LPT0 - LPT9, _vti_, desktop.ini, any file or folder name starting with ~$.
  • "_vti_" cannot appear anywhere in a file name
  • "forms" isn't allowed as a folder name.  But folder names such as "forms_" or "forms 1" are permitted
  • You can’t create a folder name in SharePoint Online that begins with a tilde (~).
  • Folder names can't end in "_files". If you are try to create a folder with name ending with _files, SharePoint does not allow the folder to be created (e.g., Vendor_files, Customer_files etc.).  As a work around, add any valid character to the end of the folder name (E.g., “vendor_files” can be created as “vendor_files-1”).
  • Outlook .pst files can not be saved to sharepoint