Birth control and erythema nodosum

Hi all, I wanted to ask if anybody has had experience with birth control and erythema nodosum? I recently got diagnosed with it and the 3 doctors I spoke to told me to definitely go off my birth control (been taking Yaz for the last 2 years and havent had any problems until now it seems) because it likely could be the reason for it. Has anybody dealt with something similar?