Yeah if the title matches the search term like in your screenshot, it acts like if you put the text cursor in the heading, and it shows the heading marker ☰. This can lead into the heading wrapping into 2 lines.
I’m sure this is a bug, and could have something to do with this bug I posted.