I think you have found an ancient teaching, from thousands of years ago! It’s called Stoicism. You even used inadvertently a version of one of the most famous stoic quotes and the openning letters of the Enchiridion by the greek philosopher Epictetus “Some things are in our control and others are not.”
Having this ancient mindset it’s really powerful and can open yourself to a whole new kind of life. Great article!