This is the reason why divers follow a golden rule of never holding their breath: by breathing continuously, they avoid any pressure differences between their lungs and ambient pressure.
This is the reason why divers follow a procedure of not holding their breath during ascent. By breathing continuously, they keep the airways open and avoid pressure differences between their lungs and ambient pressure.