Error handling for component loading