Sprouted yams do not produce toxins like potatoes. There are currently no reports of poisoning from eating sprouted yams. So, if the yams sprout, remove the sprouts and still eat them.
If you are worried, dig out the entire bud eye area. However, germination itself is a life process and will definitely consume certain nutrients. Therefore, the nutrients of sprouted yams will definitely be lost. Therefore, the best way is to save them in advance and do not let the yams sprout.