I wouldn't describe wanting to give up as primarily an emotion to me, but rather a function of available energy, or something akin to pain. I guess pain is maybe technically an emotion, it's certainly not something trivially dismissed on a whim. Anytime I've burned out on something, I just have no energy left and am physically pained by having to keep at it.