Why can't i transfer ownership of google drive folder and files to other? (OwnershipTransfer libary is being used)

Solution 1:

That's an intended behavior. From your screenshot, I'm assuming you're using a G Suite/Workspace account for your 5times.co.in email. Please take note that transferring files from one Workspace account to another workspace account or Gmail is not possible as of the moment.

This is a documented here: https://support.google.com/a/users/answer/9308960

You can transfer ownership of your Google Drive files and folders to someone else in your organization.

an alternative is to either use Shared Drive or download the file and re-upload it to your Gmail account.