Hello,
There are no known issues when working with headers and LibreOffice using phpdocx 16 or previous phpdocx versions.
What LibreOffice version are you using? Please send to contact[at]phpdocx.com a DOCX sample that illustrates your issue; we'll check it.
Regards.