"The constant gaslighting from ex-husband is extremely hurtful and exhausting," the "Toxic" hitmaker wrote via X on Wednesday evening.