Another quick test would be to connect your printer directly to your laptop via a USB cable. If it prints fine, you most likely have a configuration problem with your printer's Wi-Fi connection.
This post explains how to use HP Print and Scan Doctor to fix Printer problems on a Windows 11/10 ... specifically to diagnose and resolve these common issues. HP Print and Scan Doctor is a ...