I am facing similar issue. PDF’s are not loading in the viewer. 90% of the time it shows error
Invalid or corrupted PDF file.
PDF.js v2.5.207 (build: 0974d6052) Message: Invalid PDF structure
This happened after updating to version 6.