I found a divide by zero issue using the animator ActionTask MecanimSetLayerWeight. If the transitTime variable is set to zero, the setting of the animator layer wight causes in NaN failure .
A simple quick fix is to calculate the layer wight regarding this possible zero value before setting it to animator component in OnUpdate method: