How can I remove the overflowing bars in the 2nd staves? Thanks
Layout Options—Vertical Spacing—Hide Empty Staves.
Engraving Options > Barlines > Minimal Barline protrusion (or similar)
Whoops… I think I misread the request.