smoking weed that tastes like mould usually means it's mouldy.
did it look ok or was it kinda brown or blue-grey?
the shit from mexico these days doesnt even get dried and cured, they let it half dry, then dump it all in a trash compactor seal it up in the trash bag and send it north.
that shit is usually rank and impotent, but sometimes it's so damp it totally grows mildew like an old laundry hamper.
powdery mildew doesnt smell or taste like mould so much, so it's probably just rank ass aspergillis which can really fuck you up. i wouldnt smoke that shit.
your local community college biology dept could probably grow a culture and tell you what mould it is, but who cares about the species.
if you bought it in bulk, you could try desiccating the weed by keeping it in a sealed GI ammo can with some silica gel packets, but it may still taste like old gym socks anyhow
or you could make hash oil from it.