Copper golems, if they do not find a chest that contains the item they’re holding will infinitely search chests. For example: let’s say you have a stack of bamboo and a copper golem picks it up, if there are no chests with bamboo in them it will keep searching the same chests forever. Now the only way to get the bamboo back is to kill the copper golem (wastes resources), go and get more bamboo so you can put it in a chest (wastes time), or make a completely new chest that will only be used for bamboo (wastes resources).
Thank you for helping us improve Minecraft! We saved your files: