A 59-year-old man with COPD presents with increasing breathlessness, orthopnoea and pink frothy sputum. He is tachypnoeic, with bilateral basal crackles and oxygen saturation 86% on air. What is the most appropriate immediate management for his acute pulmonary oedema?