UBI is effectively just communism under another name. Why be a brain surgeon when you can be a street sweeper for the same money ?
If UBI is enough for a truly great lifestyle, where would be the incentive to work at all ? But if it is set at slightly under poverty level, there will be a lot of people who lose jobs due to automation who'll never work again, but have a miserable life just existing without luxuries, which would create a huge underclass.
The issue of how it could be afforded is a concern. Automated businesses would probably still be existing on the margin of profitability - globalism has killed most of the profit margin in once viable businesses. We'd be left with a few mega-corporations totally above the law and treating the few staff they needed like slaves.
So governments would fund UBI as they've always funded social programmes. With borrowing. Printing money. A huge ponzi scheme that works until something goes slightly wrong and the effect is amplified to bring the whole system crashing down. 2008 is a good example. A little bit of what was considered minor paperwork fraud, but the impact worked through like a butterfly effect. Tens of millions of people were impoverished, but not a single banker or government minister went to prison, and no lessons were learned.