Jupyterlite - Python (Pyodide) sometimes fails to work

Hi,
I’m experiencing a bug with Python (Pyodide). It happens more often when I launch a notebook that is not located inside the root folder.

Here is the error that I’m seeing in the browser’s console:

This error causes the notebook to not be able to execute any of the cells.

I was using jupyterlite cli command jupyter lite serve to build and serve the jupyterlite instance.

Any help would be really appreciated