Having these people on UBI would actually allow productivity to rise.
However, I'm really concerned about UBI because:
1) One way to get more money on UBI is to convince others to give you their money. Many people on UBI will stop producing positive or neutral work and start finding ways to trick their fellow citizens into giving them their money. We will still need some sort of welfare to provide food to people who are tricked into giving away all their money for worthless services or items.
2) Some people have terrible planning skills and just want to be happy now. They'll spend all of their UBI on worthless items and go hungry until the start of the next month. Worse, they'll spend their children's UBI allocation on worthless items as well (or trick their children into doing it if it turns out parents don't get direct access to their children's allocation). We will still need welfare to feed the children of these people.
3) Some people will decide that their calling in life is now to cause problems for others. The food check comes once a month, so now their full time job is dressing up as a clown and terrorizing random people. Don't have to get up for work? Be really loud until 4am. The people who actually do have to get up for work will naturally get the option to live in a gated community because we need the few that actually do produce more than ever. This very well may cause society to schism into people who work and people who don't.
4) The potential long term effects are pretty scary. If you never have to work will you worry about education, socialization, or how to function in a society? How many people will decide to never learn any skills whatsoever? Sure, we could build up a lot of automation to take care of these people, but the result is going to be a massive schism where some people only know how to take their UBI money card to the food silo. And their children are probably going to be in the same bucket.
Ultimately, I think we as a society have a responsibility to use our plenty to help those who are going without. However, I'm not convinced that UBI is the right way to make this happen.