Thanks for confirming it’s working for you. I have the same red hyphens, but changing the mm numbers makes no difference for me, so I’m thinking I must have some issue with pandoc, not obsidian.
Embarrassingly, I’ve found the solution to my problem; use command-P “Pandoc Plugin: Export as PDF”, not the “Export to PDF” command found by clicking the three vertical dots in the top right hand corner.