Seems the SSD sometimes heats up and the content disappears from the device, mostly from my router, sometimes from my laptop.
Do you know what I should configure to put the drive to sleep or something similar to reduce the heat?

I’m starting up my datahoarder journey now that I replaced my internal nvme SSD.

It’s just a 500GB one which I attached to my d-link router running openwrt. I configured it with samba and everything worked fine when I finished the setup. I just have some media files in there, so I read the data from jellyfin.

After a few days the content disappears, it’s not a connection problem from the shared drive, since I ssh into the router and the files aren’t shown.
I need to physically remove the drive and connect it again.
When I do this I notice the somewhat hot. Not scalding, just hot.

I also tried this connecting it directly to my laptop running ubuntu. In there the drive sometimes remains cool and the data shows up without issue after days.
But sometimes it also heats up and the data disappears (this was even when the data was not being used, i.e. I didn’t configure jellyfin to read from the drive)

I’m not sure how I can be sure to let the ssd sleep for periods of time or to throttle it so it can cool off.
Any suggestion?