A 62-year-old man with chronic atrial fibrillation and heart failure is admitted with increasing breathlessness. Chest X-ray shows bilateral alveolar shadowing and cardiomegaly. He is hypertensive and has bibasal crackles to the upper zones. What is the most appropriate initial ventilatory support if hypoxic despite high-flow oxygen and medical therapy?