Newbie; Sorry regarding getting the correct motor driver

Grove - I2C Motor DriverSKU: ROB72212P seems to be the right driver. (I think)

I have a 12V motor and want to control it going forward and back. Toggling a switch goes one way moving toggle switch other way goes other direction.
But: If for some reason it gets presser. suddenly gets jammed. (kind of like a clutch built in.)
I want it to stop reverse for a tiny bit then go back and continue rotating.
and if it does this 3 times. then automatic shuts off. Sorry but this is the best that I can describe what I’m looking for.
Can someone please send me to the right direction on what am I looking for.
And what is the correct name to use.
Thank you,