Barren plateaus induced by the dimension of qudits