Check in you dataset :-
Missing values not imputed properly.
Division by zero earlier in your pipeline.
Data containing inf or -inf.