For each chapter you need to create a specific page style (possibly derived from a common page template), each specific page style clearly with a different name from the others
Only with a specific page style (eg ch1 for chapter 1, ch2 for chapter 2, etc.) can you define a different heading for each chapter.
In each of these page styles, in the heading tab, deselect the “equal content on the first page” flag (check-button flag)
This will allow you to fill in the headings of the first page of each chapter with a different text than the heading of the second
If you do NOT deselect this check box you can only edit the heading of any page in the sequence that you have formatted with a given page style (eg ch1) and all other pages with the same style, automatically, will be re-proposed with the new content
At the end of each chapter insert a manual break (not a simple break page): menu insert-2° entry (other break)-last entry (manual break)
In the form that opens, use the combobox “Style” and in the list choose the name of the page style common to all the pages of the next chapter (eg ch1, ch2, etc)
The heading of the first page of each chapter leaves it white, the heading of the second page defines it however you want, and in the following pages, until the next manual break, you will find yourself the header of that repeated chapter.