I have a flow that needs to take a document from one library and copy it to another. The file name needs to change as well, so I don't believe I can use the "copy file" function. Instead I use the "Get file contents" function followed by the "Create file" function as shown below:
Steps to copy file with new filename.
This works fine for most files. However, if I try it with a MS Word or Excel file, the Flow gets stuck on this step. Weirdly, the file is in fact fully copied over (with the contents and everything) but the Flow stays on this step until it times out with the error below:

The file size is very small (<50kb) so it's not due to that. It almost feels like the flow is not getting the correct response when creating the file and it keeps trying over and over again until it fails.
Thanks in advance for any help anyone can provide.