I tried to remove the password/pin/pattern and it unfortunately it didn't work.
Unfortunately I don't have a USB-OTG Type-C cable to try to install with it.
Previously I was able to enter the option MOUNT in TWRP, select some folders and click decrypt, but now this option is no longer visible.
You have a problem , you have two options ...
First option is to format data and procced to a new installation , unfortunately you will lose everything ..
Second option is to flash a rom to boot phone and after that we can proceed to save whatever we want..
How to flash a rom with encrypted twrp ??
Well , get in twrp and hit install ..
The first line says .. UP a Level ( the other folders has random letters )
Hit Up A Level and you will see readable folders , you will see a folder named sideload ..
Go back to twrp menu and connect your phone to pc ..
Rename your zip rom to something easy , like RedmiK30.zip and put it in adb folder ( the folder which you flash twrp )..
Open a cmd and type ..
adb devices ( cmd will recognize your device )
adb push RedmiK30.zip /sideload/Redmi K30.zip
Now you have to wait almost ten minutes to copy the rom to sideload folder ..
Do not stop copying procedure , just wait and will finish ..
After copying the rom you can now install the update ..
Hit Install button ..
Then Up A Level option ..
Go to sideload folder and you will see the rom you copy to install it ..
Swipe to confirm flash ..
EDIT
Ok , a good twrp file save the situation , perfect ..
The above post just to know how for everyone ..