add a method to check if the error message contains a tmp file path. It is to prevent updating resource's condition forever and causing the controller flapping. https://github.com/rancher/rancher/issues/15103