Sounds like you flashed it incorrectly then... If you're trying to use Lineage Recovery then follow the flashing instructions on their OP9Pro wiki page. Also that's the end of our troubleshooting here since it's not TWRP's fault you didn't format data when switching from custom to stock ROM.
I flashed it from TWRP only. I'm now trying to flash lineage.