SSD drive keeps ejecting and remounting at night
I have a Crucial 2TB X8 SSD drive and lately I have found that it keeps ejecting and remounting, but only at night. In the morning I get the message
It is always reconnected in the morning. I have chosen "do not put hard disks to sleep when possible" in system preferences, but that's not helping.
I have other hard drives connected via USB, but they do not eject. The SSD is USB-C and it is connected directly in the back of the Mac Studio.
Seems to me it can't be an issue with the drive or it would happen at various times, not just at night. It feels like it must be a system thing ejecting the drive when the Mac is not in use for a while, but what? I fear this ejecting will corrupt the drive. I have my Photos library on it, so I am especially concerned (also have it backed up to Time Machine, but still).
Any ideas how to stop this?
Mac Studio (2022)