Hello,
MS Word doesn't have a tag to autodetect if a content is 'far down on page' or similar cases.
Maybe you can use keepLines or keepNext options in paragraphs to keep contents on the same page (https://www.phpdocx.com/api-documentation/word-content/add-paragraph-text-Word-document-with-PHP). HTML methods, such as embedHTML, allow using page-break-* properties to set the previous properties.
Regards.