I know nothing about candy making (I'll just go buy my Almond Roca at the store) but
this page says you should avoid doing it on humid days but it sounds like it is more a problem of the cooling than the cooking. It also has tips on trying to recover from separation.