The issue is that when you have one of the “Fit…” zoom levels chosen (fit page width, fit page height), the precise zoom level is determined by the size of the viewport (i.e. the area inside the panels and toolbar). When you switch from Engrave mode to Write mode or vice versa, because the panels are slightly different sizes, or can be hidden or shown differently in each mode, the viewport changes size. When the viewport changes size, Dorico has to respond to that change of size, and attempts to bring the selected item into view. If there’s no selection at all, Dorico attempts to bring the first page that was previously in view back into view. It’s this that sometimes goes wrong, resulting in Dorico ending up returning to the first page in the view.
The workaround is not to use the “Fit…” zoom level directly, but instead to use a non-“Fit…” zoom level of (almost) the same zoom factor.