Cordyceps means Cordyceps sinensis, and you can’t continue to take Cordyceps if it’s moldy.
Cordyceps is a relatively expensive Chinese medicine, sometimes because of improper preservation of bacteria, mold will appear moldy, moth, deterioration and so on. After the moldy cordyceps no longer has medicinal value, it is not recommended to continue to take.
Cordyceps will produce aflatoxin after moldy, aflatoxin has the risk of causing cancer if taken for a long time. So moldy food or drugs, can not continue to take.
If you continue to take Cordyceps sinensis after it gets moldy, sometimes it will lead to stomach pain and diarrhea and other side effects. Moldy Cordyceps is not recommended to continue to take, will affect the treatment and their own health, moldy Cordyceps has no medicinal or edible value.