One of the biggest factors that made me withdraw from CS was learning programming in high school. I had a teacher who wasn't able to communicate effectively and my own ego being bruised badly when I struggled and struggled to make code work. My second act more than a decade later gave me confidence with better teachers and internships where I saw even seasoned programmers make mistakes and develop multiple iterations before being done. This was an eye opener!