Filing contained errors known as ‘hallucinations’, with attorneys arguing prosecutors’ office used AI in other cases