If the issue is occurring due to administrative privileges, running Windows Fax and Scan as an administrator will fix it. To do so, follow the steps written below: Click on Windows Search and type ...
After the release of the Windows 11 24H2 update, Microsoft has acknowledged several compatibility issues that are affecting USB-connected printers and scanners.
In my case, the scan took around 5 minutes. If any malware files are found and removed, you will be informed via a notification. See: Read Windows Defender Event Log using WinDefLogView.