Take a step back, and accept whatever comes your way
When we go through something or face a problem, we often tend to focus on that one thing and in the process become blind and forget there exists a world outside of it. We start seeing this problem as a huge obstacle in life and that our life revolves around it. But what's important is that we must always take a step back and create some distance between ourself and the problem and realize that it is just a small part of life and not life itself.
We must understand that whatever happens is temporary and passes away the moment it happens. Once something happens, it already becomes part of the past. When we think of something, it has already occurred. I think this is one of the many ways to be at peace with oneself.
One must accept and embrace the fact that whatever happens is a small part of our life and not life itself. So, we must not take life too seriously and live through whatever comes our way with a smile.