You can see from your screenshot that it’s intending to install these packages on your C drive. Unless that path contains a symlink to your D drive?
The thing being that if the community and official folders are symlinked into the standard path, then it might be doing a free space check on C (since that’s where the path starts) rather than D. Would you have enough space on C to install these packages? If not, that might be the issue.
(Just speculating based on general knowledge, though. I don’t have any experience of moving community / official off the C drive.)