The general instruction is that the benefit of the many (students) overrides the needs of the individual (teacher). Those teachers should find positions more suited to their preferences. Each individual case should be handled by the local hanhalah for a decision.
decision.https://www.torahrecordings.com/rebbe/igroskodesh/011/011/3716