In case anyone else faces internal memory not showing ok (should be 64GB, but showing only 8).
Fix for Mi Max
Go to TWRP
Wipe
Click icon Wipe data
It will ask you to write yes and tell you all your files will be lost
Write yes
TWRP will delete everything
Now go to install and select Internal...