M-estimation in nonparametric regression under strong dependence and infinite variance