Can vertical staff spacing be frozen to prevent changes when adding items?

Dorico sometimes does miscalculate spacing (see post here), but in your case the complete overlap of the two systems is almost certainly caused by manual staff spacing before adding the rehearsal mark.

I’m not saying that there shouldn’t be a way to prevent this, but it’s not just Dorico’s algorithm gone haywire.