Hi,
First, please try to reset OneDrive and restart Mac.
About the error message, I suggest you refer to this support article and follow these steps to troubleshoot the problem:
You can also try to uninstall OneDrive and re-install it:
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.