Can't boot into TWRP recovery after flashing custom ROM?
Remember that the custom ROM package will include the boot image too. And on A/B partition devices, the recovery rests is in the boot image. So, if the custom ROM has written your boot image, then your TWRP should be gone. What will load will depend on the recovery included in the boot image. It could be stock, something else or nothing.