Menu and sub menu problems

Hello, when I add sub-menus to the menus, it causes header problem like in the picture. I would be grateful if you could help me with how to fix this.thanks