A4988 driver cooling specifications
A4988 become hot when a lot of current draw from them . If it is  more than 1.5 Amp. Also you will notice missing steps, missing layers, abnormal print and Stepper motor become hot .It automatically shutdown at max temp.