Nonlinear optical response in graphene nanoribbons: The critical role of electron scattering