The text pasted into the title bar will have the same formatting as the body text.
The solution is to copy the header below and then delete the line break to move it to the header.
This problem does not occur with text copied from within anytype.
- Copy a piece of text
- pasted to the title bar
OS: Windows 10