Firstly check the ESC for visible damage or debris. Make sure that the heat sink is not blocked and that the ESC is installed in a well-ventilated area.
Check the battery voltage to make sure it is within the ESC’s operating range.
If the problem persists, try recalibrating the ESC according to the manufacturer’s instructions.