See subject. Found info on rehearsal marks in the forums but not this particular case.
Dorico doesn’t actually enforce that things cannot go outside the boundaries of a music frame (this would in general require it to handle this whole thing very differently – e.g. consider the way that brackets and braces are positioned) so you have to assume responsibility for sorting this out yourself.