LMS and Azerty57150 have open posts here. Food or paintings..gift-giving or toddler feeding, this UI Dialog Picker bug is one in the same issue, isn't it? In any case, it affects a whole host of gameplay interactions as @crinrict has listed on their website.
Toddler feeding (give food from inventory), Scouts Activity (Give Back badge), Uni Secret Society (sprite offerings at alter or statue..just food or any offerings?), Werewolves Pack Contribution (raw meat dishes), Paranormal Investigator career (food offerings to spectres), Cottage Living tasks and competitions (such as delivering or competing with pies) as well as food offerings to birds/rabbits (meat or veggie meals), and of course, gift-giving (holiday or any day if giver sim has food/paintings in inventory).
It's understood that freshly prepared, not spoilt food will trigger the LEs. I'll add confirmation to the list. I don't allow my sims to offer food which has gone off (bc it disgusts me, folks). 😉 Anyway, whatever I may be missing here..it's a naughty bug. No joke. That's my legacy family's traditions and a career succumbed to it.
There are a few related posts I've found, e.g. Cocoastilinksi's on the Crafter career (unable to offer crafted rug) with the same UIDP error. I'm confused as to the number of separate posts. Are the UIDP errors or not, related to a single bug?