Sometimes you find yourself in a situation where you can't do anything to make it better. If you've explored all the possibilities and still couldn't solve the problem, then don't worry about it and let it be. We are taught how to solve problems but never learned to decide which problem we shouldn't solve. You need to realize that you can't possibly have the answer for everything.
It's okay to walk away from things you can't deal with but just don't use it as an excuse to run away from it.