Couple more things to check: make sure the library is readable by the user, and probably executable, just in case, although I don't know if that's actually required for libraries. Then maybe try ...
With iOS 16, Apple added an iCloud Shared Photo Library to make sharing photos with your friends and family easier than ever. You can create a shared library and then invite any of your friends with ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results