Given that you have Asperger’s, this is likely something you do to everyone, and not related to gender. You probably have a lot of knowledge and it’s natural to want to share that. However you may be missing subtle clues that the person you are talking to doesn’t need or want you to teach them because they have 100% of the ability of anyone else.
Was HR involved or did she tell you this directly? I’d recommend explaining that you have Asperger’s, apologize if your behavior is perceived as offensive and ask for help adjusting your communication. Presenting this as a disability could help counter the perception of sexism by implying that others are being ableist. Don’t actually says that though. The unsaid implication will be enough to set the neurotypical person’s hair on fire.