This article is a good overview of having a healthy and productive perspective while in the moment of troubleshooting. While this is about computer code troubleshooting, it translates to anything in life.
For me, the key takeaway is to transfer frustration to curiosity. The “answer” is out there, because technology is fundamentally designed to work. The challenge is that all of us have a relative understanding of technology and the systems we encounter.