Hello @BarryLiu97,
I had a similar problem, when using raw.save() with my data:
raw.save()
It turned out, that the parameter fmt was crucial, as its default doubled my data in size. That could be solved with setting fmt=raw.orig_format. Does this solve your problem too?
fmt
fmt=raw.orig_format