Hello,
UPDATE: New releases of phpdocx set a very high wrapping value to prevent bugged Tidy versions (that don't recognize 0 as a valid wrapping value) adding extra line breaks when reading HTML contents that generated extra blank spaces in the DOCX.
On https://www.phpdocx.com/documentation/cookbook/convert-html-to-word there's more information about this same question (Extra blank spaces added to the beginning of paragraphs section).
Regards.