Can you go here: https://support.hp.com/au-en/drivers/swdetails/hp-laserjet-pro-mfp-m225-series/model/6778493/swItemId/Im-134375-6
Download and install the full feature driver (which includes the scanner driver) and see if it makes any difference?
Note: This is not Microsoft website/URL, but it is the official OEM/manufacturer site.