Try the following Registry edit and check the issue:
- Press Win+R to open Run dialog
- Type "regedit" and press Enter
- Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Parameters
- Right-click in the right pane, select New > DWORD (32-bit) Value
- Name it "DisableOnSoftRemove"
- Double-click it and set the value to 0
- Restart your computer