Solution 1 is unfeasible long term. Again, if you print and give money to someone to buy rice, next iteration rice will be more expensive (because new money get in and quantity of rice production stood the same).
And then you need to print more than the earlier iteration. And then more. For the same amount of rice (if demand is constant, ignoring people increasingly adhering to UBI).
Parallel to this, rice productors will demand less and less that kind of money, and will try to export it to acquire better money (dollars, Bitcoin, gold). Govern will forbid it... supply then dumps, because there's no more economic meaning for the productor. Then, Government takes it, then they will ruin it.
You first messed with demand, printing dollars, then messed with supply (by making it more inefficient). There are many hustoric examples all over showing this... I just put the pieces together here.
UBI is unfeasible long term. Maybe it can buy a couple years for governments. That's it.