Are you able to load the export file locally?
If you could create a small reproducible code snippet, I could have a look.
The current code contains a lot of web stuff, which is probably not the source of this error.