The big shift in my thinking came from understanding that negative thoughts are indeed logical for the most part but not necessarily conducive to good outcomes. So to actually be successful you have to adopt cognitive distortions that lean toward optimism and action. You can't win against negative internal dialogue with rationality, so the only way to get past it is to be unreasonable. Reject any negative thought with prejudice as soon as possible, like in few milliseconds, at least until you're healthier. This overtime trains your mind to think fewer of those negative points. Which in turn allows you to focus on good things and kinda delude yourself into taking action, actions tend to lead to better outcomes.