Did you set the “navigation” settings on the button component to “none”? There used to be a weird issue in Unity where if you hovered over buttons that used animations it would get stuck in that state and start looping and it was due to how Unity thought you were navigating through the buttons. Using the normal state animation should be fine, but I would check the navigation setting first.