In the first challenge, he shouldn't have listened to Freddie, though I have to say the problem was maybe the ref not awarding the TD, but that is not the issue. In the second challenge he should have asked for a measure before throwing the red flag. The spot of the play was not clear on that play, tough spot.
We didn't lose because of those failed challenges.