fix: correct format verbs in diagnostic messages (#10805)