Ella Irwin is the second person to leave the role since Mr Musk bought Twitter in October 2022.