There are details for this here: support.microsoft.com/en-us/office/reset-onedrive-34701e00-bf7b-42db-b960-84905399050c
Make sure OneDrive is closed completely. Click on the Finder (Desktop). Open the "Applications" folder. Find OneDrive and right-click on the app icon. Click "Show Package Contents". Locate the "Resources" folder and open it. Find "ResetOneDriveApp.command" or "ResetOneDriveAppStandalone.command" and run it. When this is complete, close the window. Start OneDrive normally and do the initial setup.
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Warning: mysqli_connect(): Error while reading greeting packet. PID=43720 in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Could not connect to MySQL: MySQL server has gone away