Yes. Qualcomm devices come with an Emergency Downloader EDL mode which helps to recover from a hardbrick. You need a Flashtool and Qualcomm EDL drivers. In order to access EDL mode, you need to use an EDL cable or short JTAG pins inside the phone.
It appears like when you first wiped your partitions, the process was possibly interrupted and you now have corrupt partitions which are not being recognised in TWRP.
Please go to your TWRP settings and make sure that the use rm -rf instead of formatting option is not checked.
Now go Wipe → Advanced Wipe section and try wiping all those partitions again ...