L298H board with Stepper motor Heat problem

You could also use a adjustable regulator ... they are more common and are usually configured using a resistor divisor.