I know that generally we are not supposed to share sins with others but are we allowed to do it in a way that can help others. For example, if I struggle with an addiction can I share the ways I overcame that issue. I feel that sharing personal stories and experiences can really be beneficial in helping others.

Yes that is allowed as long as it is not encouraging others to commit the same sin. If someone looks up to you and you tell them you used to commit a particular sin, this person will see that it is okay for him to commit that sin and repent later. You should always make it seem as if someone committed this sin and not yourself.