In practice no UBI done on a grand scale would survive long enough to need this solution you're looking for. That people's money will start hyperinflating first.
*wouldn't