Hard to tell without knowing more.
Is it very humid where you are?
Have you had any caterpillar problems? They are known for shitting in the buds which almost instantly turns to mold and rots the entire bud.
Try to give us more info, hopefully that will help