Error code 41002 in iOS 13

I created an app that allows users to save and edit videos they upload to the platform. To do this, I created a code to save these videos PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: within a PHPhotoLibrary’s performChanges block. However, these calls are getting error code 41002 (Domain: com.apple.photos.error) and I want to know why!

Hey there!
Check the code in this link
It explains why
https://reference.learnosity.com/items-api/troubleshooting