Business Central limits the maximum response content size of the HttpClient to 150 MB by default, controlled by the NavHttpClientMaxResponseContentSize server setting. It means that any files above that limit fail to download from SharePoint.
The answer is to download in chunks; however, the REST APIs do not support chunked downloads, only uploads.
Graph API, on the other hand, does. We could change only the GetFile implementation to use the Graph API; however, that would mean that the app registration would need mixed API permissions for both Graph and SharePoint APIs, which I find messy.
The proposal is to add the Graph API implementation of the SharePoint connector alongside the REST APIs, with a toggle in the connector setup for backwards compatibility.
