I was recently diagnosed with vocal cord dysfunction. Is there something that causes this or is it hereditary?

No known cause. Very little is known about vcd. It can cause some very distressing airway symptoms. There is no known cause and no known hereditary connection.