@Tom. Thanks for the feedback. I think that enabling allow_url_open is part of the solution, from what you describe. I can tell that by the file size difference.
Is it that you are still getting the same exact error(s) now, or is it a different error?
I would love for you to work with me to get this resolved.
By the way, did you try changing the Content-type to “force-download”?