modules: Ensure ImportError is an instance of globalThis.Error
If we throw the error with the wrong global (e.g. the internal global) then ImportError is no longer an instance of globalThis.Error
If we throw the error with the wrong global (e.g. the internal global) then ImportError is no longer an instance of globalThis.Error