One piece of advice I’ve seen is to write constantly. Another piece of advice I’ve seen is to just get it all out on the page and not worry about how it turns out, to fix it in the editing stage.
Except, I can’t help but go back and overthink it. If I write a section or piece, I’m constantly revising as I go along, reworking a sentence or scene or even the word choice as I write. Most recently, I had put myself to a challenge to write 500 words a day (I’ve already failed). I wrote a scene for a story I’d like to work on, but then next day I looked it over and didn’t like it. So I deleted it, and then thought some about what to do instead, and then didn’t write anything more than that.

Closing the document and starting the next section on a new page would keep from immediately rereading and editing the previous text when you sit down to write. But enpty pages can be daunting.
You could try to end your writing session by opening a new document and summarize in a sentenct or two what you’ve already written, then close the old document. This way you arent starting from zero and can keepnin mind the important bits of the previous text without the need to edit whats already there.
Good luck!