Stability of the 3-form field during inflation