Drivers on cnc shield heating up fast

I have made a CNC machine using arduino and CNC shield the power supply out put is 12V 5 AMPs
I use for nema 17 stepper motors .
and every thing works well just after using the machine for a couble of minutes the driver start to smell like they are getting burned.

Please read the forum posting guidelines; we need to see what you are doing before we can comment.

A CNC shield comes without drivers.
So which drivers have you used, and what current did you set them to.

Nema17 tells us nothing about the electrical motor specs.
17 is just the size of the mounting plate (1.7 inch).
Leo..

Is this your CNC shield?

Did you properly adjust the driver coil current limits? How to set coil current limits. >> How to set your stepper driver current: A4988, DRV8825, TMC2208, TMC2209 | Circuitist.com

You can set the coil current to less than the max, of course, if the motor will perform satisfactorily. Doing so will let the motor and driver run cooler and extend their lives

Are you drivers capable of supplying the current required by your steppers?

The common drivers on the CNC shield V3 or V4 are A4988 or DRV8825. The A4988 drivers are good for 1A current without heat sink and 1.5A with heat sink and fan cooling. The DRV8825 drivers are good for 1.5A with no heat sink and 2A with heat sink and fan cooling. Going over those limits will cause heating and lessen the life of the components.