Typically a HP laptop would have a pre-installed OEM licence stored on the motherboard, the error code 0xC004F034 usually indicates an invalid product key, that may be because the previous owner installed a different edition of Windows that does not match the pre-installed OEM licence.
Download the free ShowKeyPlus app from the Microsoft Store.
Please provide a screenshot of that app window and please hide any product key that may appear in the screenshot.