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: and I want to know why!

Hey there!
Check the code in this link
It explains why