I was trying to follow the answer in this post (How to Use Advanced Drive Service to Upload Files) to convert my upload script from using DriveApps to Drive API in order to
Apps Script services impose daily quotas and hard limitations on some features.
If you exceed a quota or limitation, your script will throw an exception and terminate execution.
While uploading a large file, the script time-outs and thus will show errors.
Again, if you have a higher upload speed then uploading 400MB might as well be possible using script.