Lay the pack on the table and measure its thickest section, including any bulged seam. If it goes under the lunch box, check whether it leaves the box level. Measure the finished stack from the table to the closed lid, then measure from the bag floor to the zipper directly over the stack.
If you pack the ice pack on edge, measure the clear side lane with the other items already in place. Check its width at the floor and at the bulge, and read the available height under the closure at that position.
Illustrative example
An 8.5 cm box on a 2 cm pack makes a 10.5 cm stack. An 11 cm closing height leaves 0.5 cm. In a different position, an ice pack 2.4 cm thick and 17 cm tall in a lane 2.8 cm wide and 19 cm tall has 0.4 cm of width to spare. Check which position keeps the box level and leaves the bottle standing free.
Run the zipper with both placements. If the bag only closes when the ice pack or lunch lid bends, measure that position again.