Switches to using `RuntimeError` and drops the error message in production by replacing it with an error code. PR Close #59471
Updates the repo to the latest dev infra code which involves updating a patch and renaming all the golden files to end with `.api.md`. PR Close #56128