If the active ingredient is nothing other than one of the "alums" (complex aluminium salts), then you can ignore the expiry date and warning. Alums last forever if they are kept dry.
However, if the pencil contains other ingredients, there may well be a reason for the warning depending on the nature of the substances.
Can you post an ingredients list?