Phonon-induced breakdown of Thouless pumping in the Rice-Mele-Holstein model