I have no actual experience with yield, as I have never used it in GDScript and have rarely used it in other programming languages.
I found this answer from the QA. Not sure how useful it will be though. Based on what I could find, it appears there is no way to stop a yield statement in GDScript. Seems like there should be a way, since there is a way to resume yield functions, which (at least to me) implies there is a way to pause/stop them.
But as I said above, I have not used yield. I have always just used timer variables instead, for better or for worse.
One thing you could try is adding a boolean variable and before you call yield set it to true. Then you just check to see if the boolean variable is true before you call yield, and if it is set to true then skip the line with yield altogether.