Whenever I break a seal, I remove the O-ring, clean it and the seating area. Before re-sealing it, I inspect the area with magnifying glasses and a bright flashlight/torch.
I avoid breaking the seal for as long as possible. Usually only opening to change from wide angle to macro.
My camera has space for 2 SD cards and the battery lasts several days so this is usually not the thing driving breaking a seal.