If you feel like you're saying "I told you so" often, you should leave. Either you're not in a position to have your opinions count, or you've given up fighting for them and are burning out. (A third option is that you're deluded, and are forgetting about all the times where what you told people didn't come out true. Watch for that, and be more humble.)
Fourth option from TFA: > Your “I told you so” only highlights that you need to construct stronger arguments. All of these may be true. They're not necessarily a reason to leave.
Often you raise an issue, which is ignored or underprioritized. Later, priorities may shift from upper management, to make it an actionable argument. Rarely do you get credit or a career boost (promotion, raise, addtl responsibility, etc) from the alignment of concerns.
eg Company wants to cut costs. Using AWS can save 60%. Company doesnt want to use AWS because they compete with Amazon. New president oks AWS to save cost next quarter. I told you so gets you nothing.