Microsoft has posted a "workaround" for the issue with guidance if you are experiencing this on your systems. This issue affects Windows 7 through Windows 11. PLEASE NOTE!! This does come with warnings as noted in the article. USE WITH CAUTION and at your own risk if you are seeing this on your computers. Have a computer professional perform these steps for you if needed.
Cause
Whether or not a device is considered removable is determined by your system’s BIOS and how it marks the various SATA ports on the motherboard. The inbox driver directly inspects SATA ports and considers devices connected to those ports marked “external” as removable devices. Not all storage drivers do this, which can be a potential cause for corruption or data loss.
https://support.microsoft.com/en-us/topic/internal-sata-drives-show-up-as-removeable-media-1f806a64-8661-95a6-adc7-ce65a976c8dd