1. Defragment SSD - to pour water from a sieve. Don't ever do that. If you enable defragmentation schedule for this disk, exclude that disk from the schedule.
2. At system startup are not prompted to check disk D?
Usually, defragmentation is prohibited, if the OS encounters errors or fails in the file system.