Had a similar issue in which erecovery didn't work and fastboot would fail when trying to flash stock system images.
Managed to fix by flagging TWRP and restoring an OEMInfo I found on here, then erecovery started to work for me
** Thats if TWRP can even flash **