Just because you are struggling does NOT mean you are failing. Every great success requires some kind of struggle to get there.
It doesn’t matter if you’ve failed or if you’ve been beaten. All that matters is that you learn something, get back up, and try again. Because winning is a good feeling, but winning when nobody else thought you could is an awesome feeling.