(PHPhotosErrorDomain error 4302.)
I have Ventura 13.1 on a MacBook Air M1. I just tried to use Photos for the first time in a long while and it looks like its a new version. It can't read my photos library so I tried to get it to create a new one in my local pictures folder but I got the same error after creating it and try to open it. Disk Utility says the local drive is an APFS Volume (Encrypted).
EDIT: It seems to be able to open the new library now, after I double-clicked on the library file instead of opening Photos first. But I cannot open my original library which is on an external drive - a clue? ;-P
MacBook Air 13″