Hi- and welcome! Ive suffered from severe Panic Disorder which lead to Agoraphobia and OCD since I was 10yrs old. My immediate family are all mentally stable, however I have had aunts, uncles and a grandparent with Schizophrenia and Bipolar. I use to worry that I would get it, but I dont anymore. Having a chemical imbalance like I do as well as the mood disorder is quite different from having a pyschotic episode. Dont allow yourself to dwell on this- look at the positives and the progress you have already made in your life and go from there.
All the best,