What is the standard solution for carrying a cooler on a motorcycle?
Get a cargo rack and use good bungee cords. You need a solid mounting point like a rear rack, pannier rack, or tail, and a method that won’t let the cooler shift. For motorcycles, a dedicated cooler is recommended.