Changing the number of measures on a page

I just made an instrument switch in my piece, and now for some unknown reason Dorico has changed the number of measures per page here and there.

How can I control the number of measures on a given page?

If you lock the layout, Dorico will add system and frame breaks throughout to keep bars where they are.