Polaris tooltip content is overflowing its container - when used in a modal

When I use a polaris tooltip inside a modal, firstly it doesn’t show as expected. Then wrapping it with <AppProvider> makes it visible.

But now the content overflows the designated container of the tooltip.

And here’s the code:

<AppProvider>
  <Tooltip content={t("same_quantity_tooltip")} >
    <Box>
      <Icon source={QuestionCircleIcon} />
    </Box>
  </Tooltip>
</AppProvider>