lilkim I think Google expects the meta tag in the <head>
section of the page, and the custom header feature is for adding UI elements in the body of the page.
If you use a custom domain it's probably easier to follow the DNS verification method, or if you use Google Analytics to enable the Analytics extension and verify the ownership with that method on the Search Console.