In order to fix the HP Printer flashing blue screen error, first you need to check and update the drivers. The following steps will help you to download a compatible driver:
Go to the HP Printer official website and select "support and drivers" after choosing the drivers and software option.
From the product category, select the printing and malfunctioning option, then enter the product number in the field. The type of printer can also be selected from the list.
Then, tap the download link next to the operating system you want to download drivers and software for.
Save the downloaded file to the location you choose in the browser by clicking on save.