Spontaneous pneumothorax occurs with rupture of cavitary lesions of the lung that may be congenital or acquired as a result of prior trauma, heartworm disease, airway disease (emphysema), paragonimiasis, neoplasia, or lung abscess.