I see so many reports and threads of corrupted catalogs caused by the catalog being stored in a cloud sync directory, most often it seems to be OneDrive. LrC causes this scenario by placing the catalog on Windows in the Pictures folder that is under OneDrive by default.
I suggest that LrC create the catalog somewhere else. And to make it even better if LrC warned the user when the current catalog is stored on OneDrive or perhaps any cloud-sync directory.