How do I include newlines in a search in less?

You can do:

/pattern$

The pattern replacing pattern, but the $ must stay, it tells the search to look for the pattern, and then the end of the line.

So you'd do:

/length=9$