Document Loader node fails with “DOMMatrix is not defined” while parsing PDF files

I have the same problem as reported above (DOMMatrix is not defined). As you suggested I’ve reverted the Data Loader to typeversion 1.0, added a Recursive Character Text Splitter to the node, but I’m still getting the (DOMMatrix is not defined) error.

(I have n8n self hosted and I’m using version 2.23.1, since as the person posting the original issue, I was also getting pdf-parse v1.1 issue reported in “Error in Node Default Data Loader”.