Hi Anastasiia,
Thank you for noticing that the problem occurred after installing Sonoma. This makes us certain that the reason is an overlap in the system files between Cinema 4d and another application.
Have you tried running the program as an administrator? Maybe it will work for you. You can do that by following steps:
1. Open the app that you want to run as an administrator.
2. Right-click (or Control-click) the app icon, then choose Open from the shortcut menu.
3. Click Open.
4. The app is now running as an administrator.
hope that will help