Analysis of commutation errors for functions with low regularity