Cognitive bias believing you are good at the things you are bad at, as successes are more vivid?
It could be described as quite a few cognitive biases.  See https://en.m.wikipedia.org/wiki/List_of_cognitive_biases.

For example, confirmation bias, illusory superiority or choice-supportive bias could be at work here in your description.