Also after installing GTM Successfully using https://docs.generatepress.com/article/implement-google-tag-manager/
when i tried to Verify my site in Search console through “GTM” i got this method- Failure reason:
The Google Tag Manager snippet on your site is in the wrong location on the page. Learn more