If UBI is paid for by taxes, the money supply hasn’t changed.
In other words it is a monetary illusion. The workers can’t be allowed to be any richer because there isn’t any extra production they can consume with that extra money.
Money supply is a flow, not a stock. There isn’t a fixed amount of money.
This is true exactly as much as it is true with “capitalism” in place of “UBI” (particularly if the UBI is, in the more direct sense, funded by taxes on capital.)
Whether this is OK is a different question.