Step 1: Please go to Online Store>>Online Store Settings.
Step 2: Enable allow orders for Out-of-Stock items>> Then save and update.