album storage failure 41002

We are a picture design company. When we use the Photos library to store pictures to albums, we encountered a large number of user album storage failure cases. The most error code is 41002, but I don't know how to fix it, or avoid it.

Error Example: Error Domain=com.apple.photos.error Code=41002 "Unable to obtain assetsd XPC proxy for getPhotoKitAddServiceWithReply:. assetsd could have crashed" UserInfo={NSLocalizedDescription=Unable to obtain assetsd XPC proxy for getPhotoKitAddServiceWithReply:. assetsd could have crashed, NSUnderlyingError =0x2818a8b70 {Error Domain=NSCocoaErrorDomain Code=4097 "connection to service on pid 0 named com.apple.photos.service" UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.photos.service}}}

album storage failure 41002
 
 
Q