I can’t believe I’m saying this, but it sounds like you should look into stoic philosophy. I think it is overly hyped, and actually caused me some damage when I applied it too much, for too long, but definitely one of several worthwhile perspectives to have deeply internalized.