You could mention your lack of confidence as a weakness in an interview, but there are other alternatives that might put you in a better standing with a hiring manager. Work on a possible interview weakness you have by rehearsing different answers.