Hi Sujith S,
Thank you for posting query in Microsoft Q&A Platform.
In this documentation), which you referred, we are only granting read permissions and in your requirement, you are trying to move or copy file to different location, it needs write permissions. Since you don't gave write permissions, it is failing it.
Kindly give write permissions also and try again. Below is example code to use to give read and write permissions.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="Read"/>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="Write"/>
</AppPermissionRequests>
Hope this helps. Please let me know how it goes.
Please consider hitting Accept Answer
button. Accepted answers help community as well.