You could create a share on a local computer and copy the file into that, then copy it from that share.
This post shows how to transfer large files from a Remote Desktop to a local machine or vice versa in Windows 11/10. We discuss how to copy large files over 2 GB in a Remote Desktop Session on a ...