It seems like the quantity of the raw material/sub-product as insufficient to perform a stock-out and proceed with stocking in the main (finished) product.
We suggest you to either stocking in the raw material/sub-product or disabling the “Stock Out Raw Material” option.