I have tried to factory reset but it ends up failing with the message “No changes were made unable to reset PC”
This is 100% correct, and furthermore, we cannot help you with bypassing ANY security protocols, at all, because we have no way of knowing the history or legitimate ownership of the device. You will absolutely need to seek help from HP or Microsoft.Welcome to the forums 😀
unfortunately you will need to contact the manufacturer. we cannot help bypass any passwords on the forum.