If you encounter an error message that says, "Microsoft Graph API Error: invalidRequest," this issue is likely due to an invalid character entered as an answer to one of your questions directed to a SharePoint Library or OneDrive. Certain characters have special meanings and restrictions when used in file names in OneDrive, SharePoint, Windows, and macOS. For instance, "*" is used for wildcards, and "\" is used in file paths. As a result, SharePoint and OneDrive do not allow certain characters.
Read more