I was in somewhat of a similar situation but some of the SATA ports were bad and ended up buying a cheap SATA to PCIE card and passing it instead but that still had some issues so I ended up moving TrueNAS to its own dedicated machine and haven’t had any problems since.
Just my two cents.
TrueNAS Scale is the Linux version of TrueNAS with docker support. Might be worth looking into. It also supports doing an in place upgrade from Core but you wont be able to revert the same way.