Impact of Heading Structure on SEO: Concerns with WordPress Templates

I used WordPress to create my product website, but when I use templates or components like Sections, CTAs, etc., the page sometimes ends up with a header order like H1–H5 or H2–H4–H6. I can’t change this. Does it affect SEO? How much of an impact does heading structure have on my site’s performance in search engines?