Anomaly Detection for Scalable Task Grouping in Reinforcement Learning-based RAN Optimization