Engraver shield freezes

The L298N is a simple switch where as the A4988 is a controlled current driver. You have to adjust the current correctly. You have to adjust the current to match what the motor needs.

The higher the voltage the more torque and speed you get because the current gets into the winding quicker. In general the L298N is far inferior, it looses more voltage through its transistors and has no current control.