Rating Triggers for Collateral-Inclusive XVA via Machine Learning and SDEs on Lie Groups