The motor driver is very hot

Hello, everyone!
I’m using the 6215 motor again,the driver is High power DRV8302 board and arduino mini pro
is the code is “velocity_ motion_ control”

“Target velocity:” is quiet at low speed (1-30),But when it’s over 35, there’s noise

I try to change the PID, phase PWM frequency, AS5027U sensor SPI frequency, and use other routines to make noise during fast rotation.

Thank guys very much for your answers.