Is this what happens to you? You try hard to do something, you spend time and energy on it, and then when you think you've solved the problem you find out is doesn't work. You failed.
Sometimes you might even throw up you hands and say, "Never again. I'm tired of failing. I just can't do anything right."
Right here is where you need to take a deep breath and get real with yourself. Listen to what you are telling yourself.
"I can't do anything right."
"I'm a failure. I just keep failing over and over and it's just not worth even trying."
Well, if whatever you are trying to do is important to you, a goal perhaps, then it IS worth trying again. Nothing is as important to success as failure.
If you tell yourself you are a failure and can't do anything right, then that is what you will become. Because we are what we believe.
Maybe you just don't have the guts to fail. But keep trying. Don't quit. Don't give up on what is important to you.
Confront those downing thoughts. If you couldn't do ANYthing right, you would be dead right now, because you have to have done some things right to survive!
So look at what outcome you want and how important that is for you. And keep trying. Someone has said, "If you think you can or you think you can't, you are right."
No guts, no glory. Be courageous enough to keep trying.