Note the bin capacity if marked. Measure the top opening and the height from rim to bottom. A tall narrow bin may fit differently from a short wide one.
Try a single bag when possible. Press it to the bottom and check whether enough remains to fold over the lip without stretching the corners tight.
Save a photo of the package when a bag fits. Next time compare its actual dimensions as well as the advertised gallons.