You've got a choice.
Accept it, learn from it, reflect on it, use it as fuel for the next one, be thankful for the opportunity, tell yourself this is a chance to improve.
Blame someone, "They shouldn't have done that!", blame something, tell yourself I'm not going to even try anymore.
One helps. The other doesn't.