This is also very similar to Buddhist ideas around detachment. Suffering arises from over-identifying with our thoughts, beliefs, emotions, etc. The solution? Detachment. Detachment is not indifference, it is the act of viewing these things objectively, i.e. I am not my feelings, emotions, past or beliefs, I have .feelings, beliefs, emotions, etc.