Upgrade `thiserror` to v2.0 (#27117)

This PR upgrades `thiserror` to v2.0.

We were still on v1.0, but a number of our dependencies have already
moved to v2.0.

Release Notes:

- N/A
930dba4a7fMarshall Bowers committed on 3/19/2025, 8:47:38 PM· committed by GitHubparent7cfd919
2 files changedLine totals unavailable