Guinea pigs cannot eat green potatoes because they contain solanine, which is an irritant and neurotoxin. This makes them toxic and potentially harmful to guinea pigs if ingested. It is important to stick to yams and sweet potatoes in moderation as safe alternatives for guinea pigs to consume.