Sounds similar to coral expelling their zooxanthellae. I would guess your clams are doing the same. I assume you do nat have a bubble generating device (ie-airstone) or similar close to the clam, that it may be "inhaling" the bubbles. Be sure all conditions are maintained during water changes, if this seems to be the catalyst.