Trouble Breathing while doing dead hangs

I’m trying to do dead hangs to work up to doing a pull up however I’m struggling to breathe when hanging from the bar. I already have weak lungs so do I need to make my lungs stronger by doing breathing exercises or is there a specific technique to breathing during dead hangs?