Stabilization of internal excited polaron states by magnetic fields