https://www.tenforums.com/drivers-hardware/128529-how-disable-eject-hardware-2.htmlGo to your BIOS / UEFI . In advanced options there can be an entry to turn SATA Hot Plug on or off for each SATA port.
there is a chance its a bios settings marking the sata port as removable, I have similar on my hdd, it shows in there
https://www.tenforums.com/drivers-hardware/128529-how-disable-eject-hardware-2.html