Compactness of Riesz transform commutator on stratified Lie groups