ai code generation failures