software can’t “fail”. It is a set of instructions that the hardware must follow. AI software might produce a solution that is not optimal, but it doesn’t fail. Ever. It might be a programming error, in which case the programmer and the testing and quality control organizations failed.
Ever heard of “stack overflow”?