If you’re seeing the error "The following file couldn’t be moved to trash” and “Is there a Recycle Bin on the drive where the files are stored”, then your D drive’s recycle bin alias may be named differently than in your C drive.
I was able to fix this in windows. The recycle bin in your C drive is a hidden folder called $Recycle.Bin. In your D drive it may be called $RECYCLE.BIN. Ranaming the D drive alias to match the C drive folder fixed this. I do not know if this will cause other side effects. Although Windows is supposed to be case-insensitive, so hopefully not.
To view a drive’s hidden files, in Explorer go to View -> Options -> Folder Options -> View -> Advanced Settings and uncheck “Hide protected operating system files”.