Novel nonresonant and resonant mechanisms leading to the breakdown of the Franck-Condon approximation in photoionization