Corrupt photos library and problems designating backup as system library
Hello. Today I went to open photos and I got the message "The library could not be opened". I can't think of anything I did to cause a problem. There are no options to repair or anything. I dipped into Time Machine and restored a version from yesterday, which opens fine. When I enter Photos Preferences to select the backup as the system photo library I get the message "The operation couldn’t be completed. (PHPhotosErrorDomain error -1.)". I have tried creating new librarys but I get the same message. I am baffled as to where I go from here, I just want to get icloud photos up and running again.
Thank you in anticipation ... Ian
Mac mini, macOS 12.6