Does it happen on new products or also updating old one?
That should give you a hint how to solve it.
https://github.com/PrestaShop/PrestaShop/issues/12075
and
https://stackoverflow.com/questions/33737513/cant-update-stock-quantity-in-prestashop-bo