There is a solution:
1. Turn off the phone
2. Press and hold Volume up, and turn on the phone
3. After loading TWR:
when you enter the password for the first time, enter the wrong one. When re-entering the password, enter the correct one. After that, there will be no errors when installing...