I've managed to replicate this situation a number of times. When a person attempts to barter with you and give you an item that will put you past your weight allowance, the item will not transfer and it will go back to the person who originally had it.
The only way then to pass on the item is to put it on the ground and let them pick it up.