My first CNC machine Arduino Mega controlled!!!!

I suppose that's one strategy. If you put a heat sink on it, you can probably reduce the chances of the magic smoke escaping.