"The error message "Tried to switch to the same state, this should not happen" typically occurs in Unity when you are trying to change to a state that the object is already in, such as in a Finite State Machine (FSM) or when handling animation transitions. Unity is letting you know that this transition is unnecessary because you're already in the target state."
is what chatgpt says about this error