What is "flash" partition?
If you have not already solved it, try to erase the partions first using "fastboot erase recovery" "fastboot erase boot" and boot into twrp again using fastboot boot twrp afterwards, then using an otg and usb or somehow accessing the internal storage flash over the rom.