The attribute SharedBetweenAnimators make the windows package crush when I close the application.

Add the attribute SharedBetweenAnimators to the StateMachineBehaviour make the application crash on windows platform. When I close the .exe, the application always crash.
I remove this attribute then everything is OK. I think this is a bug for Unity.

Is there anyone met the same problem when build the windows package and using the SharedBetweenAnimators Attribute?

Yep, I’m having the exact problem you described. I’m preparing a bug report now.

This didn’t get reproduced on the latest LTS, so I think there is no reason to file a bug report now.