Just as a footnote to this thread...
I use Orico external NVMe enclosures, but NOT the 40GBs ones, nor Acasis brand, so I bear that in mind before I say -
1) I agree it seems odd that the M1 Studio would give you spontaneous disconnects. However ...
2) It does NOT seem odd that the Hackintosh would.
Point 2, all down to power delivery.
I find cable length can also factor into the issue. Generally the cables supplied with the drive enclosure work if plugged directly in the computer.
I would not expect the Z97X motherboard USB sub-system to deliver enough power for prolonged connections at high speed, if at all. At best it's basic spec USB3.
I've never had to return an SSD as faulty, sticking with well-known brands.
So, sorry that doesn't really help. But I'm inclined to think power delivery is the problem, rather than the SSD. Also OWC make good kit compatible with macOS but perhaps not so fast.