The European Union's former foreign policy chief has quit her role as head of a prestigious European studies institute.