Ive once extracted mescaline that had a lot of mold and nothing appart from mescaline came across as test results have shown. But there was some solvent pull and salting involved, so maybe that is relevant.
Ive also drank ayahuasca made from some vine that had some slight molding, and I brushed/scraped the mold out and washed the vine before brewing.
If its indeed just small amounts of mold, and you clean it well, and then you even extract and do at least one redissolving and reprecipitating, I would consider that`s probably pretty safe but proceed at your own risk