after update twrp you need to format data - data partiotion and internal storage are not the same! they need to be backup both.
So make backup in twrp, restart to miui, copy backup to PC, then format in twrp (works like wipe all so you need to do first setup), backup bring back to the storage...