discan.dll Error in Windows 10 and 11: Windows data-integrity scan task

A Windows storage diagnostic reports a failed data-integrity scan and names discan.dll.
The Windows file inventory identifies discan.dll as Data Integrity Scan Task. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Record the volume, time and relevant file-system or disk events. Verify whether the volume can still read several small noncritical files, and check the storage vendor's health indicator.
Repair the affected feature
Back up readable data. Use approved non-destructive volume and device checks first. Escalate repeated media or hardware errors before authorizing any write repair.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Confirm the targeted volume's documented integrity check completes and verify representative files remain readable.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.