Currently the whole file is stored in memory and then passed to the library: https://github.com/owncloud/core/blob/v8.2.2/apps/files_external/lib/google.php#L469
This could easily cause out of memory errors in case the file is too big to fit in memory.
The question here is whether the library that OC uses called google-api-php-client supports stream upload ?
@icewind1991 @Xenopathic