Same issue here, so frustrating.
Happening on both my MacMini and MacBook Pro both running:
Monterey Version 12.4
OneDrive Version 22.099.0508.001
panic(cpu 0 caller 0xffffff801fd1cd6b): initproc exited -- exit reason namespace 7 subcode 0x1 description: overflow of service activation count during activate. Managed:1. Count:32767. Service:'user/501/com.apple.xpc.launchd.unmanaged.OneDrive File P.16285'
Not found the exact circumstances to reproduce, I originally thought it was when syncing a large number of files, but it happened tonight when everything was all synced.
On my MacMini yesterday I ran the OneDrive reset:
To reset OneDrive on a Mac
- Quit OneDrive. (Select the cloud icon in the top tray, then select Settings > Quit OneDrive.)
- Find OneDrive in your Applications folder.
- Right-click OneDrive and select Show Package Contents.
- Browse to the Contents > Resources folder.
- Double-click ResetOneDriveApp.command (or ResetOneDriveAppStandalone.command, if you're using the standalone app).
- Start OneDrive and finish the setup process.
I had no further issues after that although with 300Gb's of photo's it took all day to resync.
It's now happened on my MacBook Pro tonight and I'm willing to reset OneDrive again and leave it syncing overnight to see if it fixes the issue, I just shouldn't have to!!!
I know it's coming as the mouse pointer freezes, then the Mac shuts down and the fans blow a massive sigh of relief, then it restarts but I can't have this unpredictability when I'm in the middle of a Teams call.
I moved everything to Adobe Cloud a while ago when Microsoft forced the files on demand but as they relented in a subsequent update I moved back but I can't keep doing this whilst they figure out what's going on.
Maybe the reset will work (and apologies, I've only read pages 1, 5 and 6 in this thread in case anyone else suggested this.)
I'll report back.