I felt the same way, but I didn't figure it out for myself, my therapist had to tell me.
It might sound slightly crazy but finding out what I thought was just my stupid weakness, is an actual thing other people have really helped. It also gave me some hope that there is a way to change my bad habits, and that it really is just a bad habit, and not me that's bad.
I sympathize, and hope the shock wears off soon. But I think it's a really great sign that you were astute enough to identify this yourself.