I have a situation where I am getting this error when I am trying to download a file from azure blob container:

Here is the bit of code that runs when I download the file:
try
{
var fileStream = await _blobServices.ReturnBlobStreamAsync(blobName,_downloadProgress.CancellationTokenSrc.Token);
using var streamRef = new DotNetStreamReference(stream: fileStream);
_downloadProgress.CancellationTokenSrc.Token.ThrowIfCancellationRequested();
await jsRuntime.InvokeVoidAsync("downloadFileFromStream", fullFileName, streamRef);
}
catch (OperationCanceledException ex)
{
Logger.LogWarning("Download was cancelled : " + ex);
}
And here is the JS code:
async function downloadFileFromStream(fileName, contentStreamReference) {
const arrayBuffer = await contentStreamReference.arrayBuffer();
const blob = new Blob([arrayBuffer]);
const url = URL.createObjectURL(blob);
const anchorElement = document.createElement('a');
anchorElement.href = url;
anchorElement.download = fileName ?? '';
anchorElement.click();
anchorElement.remove();
URL.revokeObjectURL(url);
}
For context, the file is about 140 MB and I am developing on a very crappy laptop that is always running out of storage. I am suspecting the file stream is exhausting my memory , as smaller files (less than 60 MB) seem to download without any problem. The app on prod seems to be working fine. Can anyone please shed some on how to verify my doubt? I am not cancelling the download but it is throwing OperationCanceledExceptionas shown in the image.