A 71-year-old man with a history of heart failure with reduced ejection fraction presents with acute severe breathlessness. He is sitting upright, distressed, with pink frothy sputum, respiratory rate 32/min, oxygen saturations 86% on air, and bilateral basal crackles to the mid zones. Blood pressure is 170/100 mmHg. What is the most appropriate immediate pharmacological management?