MacOs Sonoma crashes when I try to sync the library

Hello, I have a MacBook Pro m1 with MacOs Sonoma 14.0, which occasionally crashes when I’m connected to my Prime 4+ synchronizing the library. Then the message appears saying that the library is corrupt. Any idea what could be happening? Thanks.