Quote from that link:
"How do I stop the "Disk Not Ejected Properly" message on my Mac?
There's no macOS setting that silences it, because it's a symptom rather than a preference -- the fix is to address whatever is making the drive disappear.
Start with the cheap, easy suspects: try a different cable, a different port..."
Specifically: NOT another port on the Mac, as that will just replicate the problem.
Instead USE A USB-C CONTROLLER PORT that is USING the same sort of Controller hardware as the (disconnecting) external hard drive/SSD is using - i.e. NOT designed by Apple.
The easiest way to connect a RealTek (or whoever) USB 3.* controller to your Apple Silicon Mac is to use a Thunderbolt 3 dock.
Do NOT use TB4 or TB5 docks, as they pass the external devices USB 3.* signals back to the host Mac controller chip (so the problem remains).
Only a TB3 dock uses it's own USB 3.* controller, and passes the USB 3.*data to and from the Mac using the PCIe protocol.
Which the Mac deals with impeccably, because PCIe TB3 on a Mac 'just works'...
So connect any USB 3.* devices. - HDs or SSDs - to a 10Gbps port on the TB3 dock, which will have its own PSU to keep any external devices reliably powered as required.
Apple understands reliable communication using PCIe to an external Intel TB3 controller chip...
Intel understands reliable communication to a PC-manufacturer USB 3.* controller...
RealTek (or whoever) understands reliable communication with USB enclosures and HD/SSD manufacturer's devices...
So unexpected drop-off error messages will most likely be a thing of the past (my experience).
Unless the firmware of your external enclosure, or HD (SSD) has been hardwired by the manufacturer to go to sleep at all possible occasions, in which case, they may just be incompatible... 🙁
Nitty gritty details:
If you want to connect lots of USB 3.* SSDs, and maintain the highest bandwidth to them simultaneously, then probably the best TB3 dock is Caldigit's TS3 dock.
That uses the older Intel Alpine Ridge TB3 controller chip, which allows more of TB3's PCIe data bandwidth to be routed to USB 3.* ports.
In about 2018 Intel changed over to the Titan Ridge TB3 chipset, which allows dual external 4K monitors to be connected.
This restricts the PCIe bandwidth available to USB 3.* ports to 10Gbps max between all the USB 3.*ports.
However, being a later chipset, it is likely more reliable than the older Alpine Ridge docks.
Good condition second user docks will be fine for this purpose.
My recommendation is to get one of the last WD D50 Game docks, that are still being sold new at reduced prices in some outlets (search around).
You can get this as a plain dock, or with a 1TB or 2TB SSD internally.