Having HP Printer flashing blue screen error issues means you should 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 printing and malfunctioning, then enter the product number. From the list of available printer types, you can also choose one.
Download drivers and software from the menu, choose the operating system, and then tap on download.
Use the browser option to specify a location to store the downloaded file after clicking on save