Hi.
i do have exactly the same problem.
I even reseted whole iphone and configured it from zero and still photo library cannot sync due to being stuck at deleting shared library.
This happened when i shared that new library with iphone on ios 15 and then deleted it as it was not working.
Now my photo sync is stuck on iphone and mac for few weeks.
Here also people have this problem but no solution.
https://forums.macrumors.com/threads/shared-photo-library.2352670/page-3
Topic:
App & System Services
SubTopic:
Core OS
Tags: