Hello @berke !
If the file is too big, you can compress/zip it.
Your issue started with this:
b'Got EOF when reading from device'
You may look here: