On this website, but make sure it's rom fasboot:
https://xiaomifirmware.com/roms/download-redmi-k20-xiaomi-mi-9t-official-roms/
And you flash with the MI FLASH program, and make sure it's the latest version.
And in regards to your storage, you have to make a copy of the important thing, since...