I'm getting the same errors, and this is sometimes preventing the viewing on devices, although that issue is rare. Console screenshot and page render failure attached.
Looks like you're trying to load a local file (probably local dev?) in that case I'd try the local client id that is in the sample examples.
If you're not using a local url (for your site) I'd change the file url from `file://` to `http://`. I still have the above errors but I am now able to view/load the PDF.