Change twrp first , you can't update with 0317 ..
Android 11 doesn't accept pin numpers to decrypt your files in twrp ( it's written almost at every page )..
Before you do a new flash update you have to disable fingerprints and pin , but you can use a pattern which is decrypt storage at twrp ..
Now you have to format data and reflash the rom to be sure ..
Enter twrp , Advanced / Format data / type yes and hit enter ..
Go back to main twrp menu and choose , Reboot / Recovery ( phone will be enter to twrp again ) ...
Connect to pc and copy rom zip at memory..
Choose , Wipe / and swipe cursor right to factory reset ..
Go back to twrp main menu and choose , Install / choose the rom zip ..
Swipe to confirm flash...
When installation finish choose left button to Wipe cache and dalvik ..
Reboot system ..
Done ..
EDIT
Probably you have to try all this with the newest twrp for your device 1206 ..
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com