It sounds like a borderline personality trait. It could also be an anxiety disorder or delusional thinking. It depends on how certain you are and for how long (and how you react).
If you're certain you were wrong but for a moment you were very certain and you felt confident and quick to judge and act and after you discovered your mistake you felt suddenly very guilty and depressed, it's most likely (a part of) BPD.
It's a bit like a weak, highly unstable and changeable and chronic BP/psychoticism.
It's borderline normal. Borderline intense.
Also experiencing mania and depression is not uncommon. Yeah!