Hello,
Thank you for posting question on Microsoft Windows Forum!
Based on the issue description. Since HP Smart works but the standard scan job fails, we can rule out a hardware failure. This might point to a communication timeout or a buffer issue between the printer’s physical "Send" command and your computer.
Since Windows often defaults to a WSD (Web Services for Devices) port which might drop long data transfers (like a multi-page scan). The suggestion here is to switch to a manual IP port. The suggestion here is to switch to a TCP/IP Port instead of a WSD port by going to Control Panel > Devices and Printers. Right-click your printer > Printer Properties. Go to the Ports tab. If the checked port starts with "WSD". Click "Add Port," select "Standard TCP/IP Port," and enter your printer's IP address.
It is also worth to adjust Windows Image Acquisition (WIA) Settings by press Win + R, type services.msc, and hit Enter. Scroll down to Windows Image Acquisition (WIA). Right-click it and select Properties. Go to the Recovery tab. Set First failure, Second failure, and Subsequent failures all to Restart the Service. Click Apply and OK.
Another point worth mentioning here is to disable and then re-enable Scan to Computer. Sometimes the link between the HP software and the printer gets "stuck" on a specific page limit. Open the HP Printer Assistant. Go to Scan > Manage Scan to Computer. Click Disable. Wait 30 seconds, then click Enable. Restart both the printer and the PC.
Hope the above information is helpful! If it helps you getting more insight into the issue, It is appreciated to consider clicking "Accept Answer". Should you have more questions, feel free to leave a message.