Training with CPA error help needed


I have been using random forest classifier to classify images as positive or negative. On several data sets I have gotten the error below when training, hence preventing me from training. It is odd because sometimes I will train with 5 rules and it works but then when I go to train with 10 rules it gives me the error message below. Any help would be greatly appreciated