Xiaomi R3Gv1 MTD backup fails

Hello!
I'm trying to do a backup of MTD files before flashing OpenWRT but when I run the script given here, the backup fails.
I'm seeing the following error message:

Please can you advise on how should can I fix this?
Any help would be greatly appreciated.

Thanks!