If there is no off smell or aroma from the khoya, then it's fine to use. In fact, the batti variety of khoya is sometimes aged for months or up to a year and has mouldy surface.