I also encountered a similar problem with the error message as follows: Is there any way to fix it
iOS16 xcode 14
[PAAccessLogger] Failed to log access with error: access=<PATCCAccess 0x280086bc0> accessor:<<PAApplication 0x28001b520 identifierType:auditToken identifier:{pid:2938, version:8221}>> identifier:ED0F70CE-BEB5-4F47-8213-9A7E52AEFB80 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 2824 named com.apple.privacyaccountingd" UserInfo={NSDebugDescription=connection to service with pid 2824 named com.apple.privacyaccountingd}