If you look at p. 3, it is shown that M.2 SSD is supported only on m6-aq1xxx models and yours is m6-aq0xxx. So you may not have an M.2 slot at all. In other words, please open the laptop to check for the presence of the slot before you buy an SSD. If the slot is present, the Manual lists a 256 gig NVME M.2 SSD as a compatible disk, so that means NVME is supported and you could install any capacity.
This is where the slot will be if you have one:
red arrow = M.2 slot
Post back with any more questions and please accept as solution if this is the info you needed.
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".