you can try setting always_open_pdf_externally to false in the capabilities. But this may be a limitation of headless chrome.