There's a name for this kind of mistake, it's called "escalation of commitment to a losing course of action."
Existe un nombre para este tipo de error: “escalada de compromiso a un curso de acción perdido”.