When copying and pasting in the builder, you are always copying some inherited style and additional code and that will cause issues with your template.
The proper way to copy and paste content in the builder is shown below:
Add a Header or Paragraph component, paste your test in the Edit HTML section and click Update Element
In that way, only the text will be copied without any additional style.