Creating a shared folder from a folder that already contains a very large number of files will often result in an error. This error only affects the creation of a shared folder and won't affect future invitations to the folder.