Basically, someone can spawn a gift wherever they want (I think), including inside of (at least some) NPCs. My suggestion is to make certain areas off-limits for gift spawning, such as inside of NPCs. Although it is possible to get these gifts, it is very challenging to do so, and is rather frustrating when you keep opening up a UI menu.
I’m fairly certain this isn’t a dupe