fix: Better exception handling in ConfigsController