What twrp, you need to fastboot the 321 version, then once back working you place P full room on sd card, use stock update tool, settings, update, local...
Once done reboot fastboot mode, you can just choose fastboot in stock recovery, advanced area. Or use keys volume up and power. Then...