How can I solve this puzzle?
It’s helpful to apply restrictions to both groups in line puzzles when you’re solving it. That way you can deduce things that are guaranteed to break things and won’t work. Like here for example you cannot go any lower from topmost yellow line.
So you should extend group somehow, to be able to split two sections.