I'd make or have made a matching wooden frame the same width of the bed with rubber on the bottom and sides that the cooler would just fit inside of. Better yet, have the sides of the frame adjustable so they would push against the sides of the box. No drilling required.
John