formula_installer: handle post_install exceptions.

Warn users and point them to `brew postinstall` (which can provide a
backtrace).

Closes #21887.