I see in your copied.txt
log
2021-01-02 17:44:37 ERROR : XXX: Failed to rename: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
So that is one reason the de-dupe is failing. Are these files owned by another user maybe?
2020/12/31 17:47:28 ERROR : XXX.png: Failed to copy: open data/data/com.termux/files/home/achoz/.../XXX.png: operation not permitted
These errors look like permissions errors on Android - termux not being able to open those files for some reason. Can you (say) using head
on one of those files in termux and see what it says there? What do the permissions look like on that file?