You should not store your Zotero library in cloud storage, for reasons given at the following link: https://www.zotero.org/support/kb/data_directory_in_cloud_storage_folder.
If you are using a Mac that syncs to iCloud, be sure to store your Zotero library in a folder that is not part of the synchronisation. For instance, the Applications folder is usually safe.