From Old Spanish yerrar, a variant of errar, from Latin errāre, present active infinitive of errō. Related to English error.
yerrar (Latin spelling)