There’s a lot of speculation of whether Froome will abandon if he continues riding poorly, so he can prepare for the Tour. But if, as is likely, the decision in his case comes before the Tour, and if, as also is likely, it’s a proactive ban, he won’t be able to ride the Tour. So it seems to me that logic would dictate he ride the Giro all the way through; it could very well be his last race for a while. Even if, less likely, he got a retroactive ban, it would probably include the Tour. Of course in that event the Giro wouldn’t matter, but he wouldn’t know that now.
The race schedule also doesn’t favor bailing soon. There won’t be another mountain stage till the end of this (second) week, he’s certainly not going to give up before then. If he does poorly on Saturday and Sunday, it’s conceivable he could be so far out of it he figures he can’t win. I think that’s a real possibility after this last stage. But if he doesn’t lose any or too much more time (we still don’t know, he himself may not know, how much his performance so far has been the result of the crashes), then he’d certainly want to stay through the rest day and see how much time he can make up on the climbers on the ITT.
At that point, there wouldn’t be much advantage, from the point of view of preparing for the Tour (which again, is likely not to happen, anyway), for not continuing. There are three very tough-looking stages at the end of the last week where a lot of time could be lost by any of his rivals on a bad day.