I had a cognition when I came back from Thailand and that was, regardless what happens in life or whatever worry you have at the time it always works out at the end. Think about it, you've reached this far in life and overcame 100% of problems and regardless of what the problem was, it made you stronger and taught you life lessons. Also another thing to think about is that whatever your problem is at the time there is someone in the world in a worse situation so it's a key to be grateful that it's not as bad as what you may think at the time.