Lexical error

From Teflpedia

A lexical error is an error that somehow involves lexis and diction.

Typically, that involves choosing a word with the wrong meaning, or in the wrong register.