In the order details table of the database, the column used to store the product ID is set to be a numeric column type.
Either change the IDs in the cart to be numeric. Or edit the Order Details table and set the product ID column to be varchar. you will also need to edit the Store Order Details behavior on the confirm page to edit the data type for the product ID column.