How to clear state after a set amount of time

Hello! I didn't want to do this at first but after trying everything I couldn't find what I need.
Ya see, why I need to clear a state is because I want actor faces to change to specific actions.
Specifically when an actor gets hurt, I would like for it to pop up for a short amount of time and then disappear.
ExampleRPGMAKER.gif

Sort of like this. I am using WAY_CustomFaceImageEval for other effects and i would like to also use notetags to do this too but it doesnt come out how i want it to. Either its there for too long or it glitches out.
A theory i had is if i remove the state after it was given to the Actor after a few frames, it would work, but i have no clue how to do it!
Please help me out here cus ive been at this for a full 5 hours...
One way would be if you were using action sequencing. That way you could include the state when the skill hits, and remove it after a couple frames. But I'm sure there's a better way of doing this.
To be fair, i tried other ways but this feels the most easiest to code.
how do you think i would code that?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-clear-state-after-a-set-amount-of-time.179935/