Here is my approach:
In the False branch of your If condition, add a Fail activity. Configure this Fail activity with an appropriate error message.
On the On Fail branch of the If condition, add a Wait activity (you can set it to wait for just 1 second or your desired duration).
This Wait activity should have its output configured to end the pipeline with success.