This error can occur when working on multiple Purchase Orders or FBA Send-Ins in parallel.
Especially with FBA Send-Ins it can happen that more cartons are sent than are available in the warehouse. (e.g. because you have subsequently changed the quantities in the Purchase Order).