Dollar Tree's longtime chief legal officer is among a spate of executives who have departed or are planning to depart the company, weeks after it reached a settlement with an activist investor to overhaul its board of directors.