Custom error handler for module initialization failures. If not provided, shows a default error UI with retry option.
final Widget Function(Object error)? onError;