found this out malwarebytes has a conflict causing the problem
from malwarebytes forum
Web Protection component is somehow interfering with the scanner's communication, possibly on a driver level and if that is the case it means we can't exclude it as driver's cannot be excluded from Web Protection.
this looks to be the problem here also hp repair tool shows a driver communication error when Web Protection is enabled, when disabled shows no error and scanner works.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".