You should store them in an airtight container, away from mold and moisture, heat, and flames. They should be sealed tightly to prevent them from absorbing moisture from the air. Moisture is the enemy of wood pellets, makes them crumble, fall apart, eventually go bad, and block your grills auger during use. You need to keep them dry.
Learn more in our guide to wood pellet storage.