Reduce gradient size if the gradient is too large (clamping)