Tried to upgrade TWRP before upgrade to LOS 17.1, now stuck in boot loop! Help!

If you still have the install file for the LineageOS build you currently have on the phone, just install it with TWRP again over the existing installation. This doesn’t do anything with Apps or data … helped me a couple of times out of a not booting OS after a TWRP backup restore.

You need to boot into TWRP for your PC to see the phone’s storage.
If this still doesn’t work …