Block transition to State machine

Is there any possible way to prevent the transition from “Any State” to “MyStateMachine” if any clip in this state machine is currently playing?

I do not want to add new parameters to the animator.
I have a look at StateMachineBehaviour, but it looks like this class can only receive transition callbacks but cannot block any transition. Maybe there’s some way to just Mute the transition in runtime?

Overview:
8881101--1213371--upload_2023-3-16_15-14-16.png

“MyStateMachine” inside:

Hello, any info, or suggestions?