The “ahead of time” component is partially addressed by the Office of the Comptroller of the Currency which conducts period stress tests of banks. The people doing the testing know their stuff. These bank evaluations have likely caught and mitigated many issues like SVB ahead of time, and we will never know how many more failures would’ve occurred if it weren’t for their efforts and those of other auditors.
Source:
https://www.occ.treas.gov/topics/supervision-and-examination...