How to terminate the workflow if i get 5 exceptions continuosly

HI @Deeksha

Check out the Video link