X Corp., formerly known as Twitter, has accused a former employee of leaking information to the media in order to embarrass Elon Musk.