So far you are only theorising that temperature is the culprit. Why not blast the SSD with a fan and then torture test it? If the SSD still falls over, and SMART is reporting a normal temperature, then the problem is elsewhere. In fact plenty of people are reporting stability issues with certain chipsets.
Here is one very long thread on the subject:
https://forums.anandtech.com/threads/stable-nvme-usb-adapter.2572973/
I am attributing it to heat, mostly because it works fine until the data rate goes up and the device gets too hot to touch. Then it disconnects. The longer I let it cool, the longer it will run the next time. And I agree what you have described would be the next step. But I'm not going to do it. I buy products to solve problems that I have. I don't buy them to create work for myself. If they don't work, I have no use for them.
A few years ago I decided I was sick of the
<Mod Edit> products people put out and that going forward I would go through no more than one round with tech support on a product, and if it didn't work, I'd just return it. I'm tired of doing QA, compatibility testing, and debugging of other people's products. That's their job, not mine. As consumers we have been so conditioned to put up with this crap, that it's what we get most of the time.
Thanks for link. I hadn't seen that particular discussion, but have seen others talking about the different chip sets. The first enclosure I bought use the JMS chipset, and it would crash my Mac consistently. Searching online I found this was a common complaint, aloing with recommendations fro the RealTek chipset. So the next two that I bought had the RealTek chip. They don't crash the computer, but they do disconnect when they heat up.
I talked to one of the enclosure's support people and they said it should work and that if it's overheating it's the NVMe's problem. But they couldn't tell me what 4TB NVMe they have tested, nor what heat dissipation the enclosure is capable of. And PNY (NVMe vendor) said the stick can be used in an enclosure, but when I told them it was overheating they said it was designed for motherboards not enclosures. So far I can't find anyone who has tested and is using a 4TB stink in a USB C enclosure. No manufacturer, nor any consumer. So far there is no existance proof that this can work, and I'm not going to do their thermal engineering for them on it.
I have wasted somewhere between one and two days on this, done a round with tech support with two companies, and there are no solutions other than "point a fan at it". That's exactly the sort of crap engineering and crap products that I'm not going to waste my time on. I have now returned all the enclosures and the NMVe stick for refunds. I'll go back to 2.5" form factor SSDs. At least they seem to work.