After reading your post, I did go through the Maintenance and Service Guide of your product and found that your computer model is not supported with Active pen/stylus.
However, If your model features a touch screen, it is still compatible with a passive stylus. Passive styluses do not require batteries, do not have any configurable options, and do not use specific pen software. Click here: https://store.hp.com/us/en/pdp/hp-pen to shop one from HP store.
Hope this helps! Keep me posted for further assistance.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
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".