Feed your starved intellect
A simple solution to the mental anguish caused by the past failures is to forget them; Similarly, a simple solution for worrying about the future is that you should think about the problem only if it becomes a reality rather than worry in advance.