Instabilities in Doped Materials Driven by Pseudo Jahn–Teller Mechanisms