It looks like that there is another asset in your project (or part of your own code), that also uses the name “FSM”, but which is not encapsulated into a namespace, which as a result can create conflicts. It is advisable for all assets or code to be put into namespaces to avoid such conflicts and all NodeCanvas classes are indeed in their own namespace.
If that other “FSM” named class is part of your own code, I would advice you to please put that class into a namespace.
If that other “FSM” named class is part of another asset, then probably kindly asking the developer of that asset to put their classes in a namespace, would be the best solution.