Hay is usually caused by drying it too fast and/or not leaving enough moisture in it for it to actually cure.

Hay can also be a normal smell for cannabis, and is not considered desirable.

Hay smell has nothing to do with mold though so I wouldn't be worried just because of that.