fix: improve visibility of ValueError root causes in model config loading (#41972)
* Make config util exception handling more informative when ValueError is raised
* transform ValueError into OSError and propagate upstream instead
---------
Co-authored-by: Scott Zhang <scottzh@fb.com>