I have the same problem with Redmi 7. It is able to load fastboot or recovery, but nothing else, and the bootloader is locked.
I have had a positive experience updating a locked HTC to official ROM in recovery mode, but then I managed to write ROM on internal storage. This time I don't know how...