When trying to Export a PBIX file, which is greater than 1 GB in size, an error is thrown:
Error while downloading %Report%! Exception: array dimensions exceeded supported range
The reason for this is, the http request is stored in anbyte array, which only supports 2GB in size (unicode doubles requied memory).
A possible solution might be to replace this behaviour with a stream.