NavMesh Agent changing Model Rotation

See the attached images but basically I have an enemy game object that has it’s rotation change completely on start for seemingly no reason at all. This only happens with a NavMeshAgent is attached to the gameObject. I’ve tried a few different things to get this fixed including:

agent.updateRotation = false;

rotationValues = new Vector3(-90, 270, 0);

gameObject.transform.rotation = Quaternion.Euler(rotationValues);

I had the same problem.
I simply put agent.updateUpAxis = false; and it seems to solve it.

Try activating the Static checkbox. ,Try activating the static checkbox for the model.