Enable format string validation for module_failure_msg
Fix invalid format strings and bugs revealed by the previous change