Check following...
-unregulated supply impedance is low enough to give needed current to regulator
-Cin is 100µ or bigger.
-Cout is big enough.
-Inductance L1 has right value ( Not critical) .
-Schottky diode, or any of the suggested fast-recovery diodes
-R1 between 1k and 5k
As in any switching regulator, layout is very important. Rapidly
switching currents associated with wiring inductance
generate voltage transients which can cause problems. For
minimal inductance and ground loops, the length of the leads
indicated by heavy lines should be kept as short as possible.
Single-point grounding (as indicated) or ground plane construction
should be used for best results. When using the
Adjustable version, physically locate the programming resistors
near the regulator, to keep the sensitive feedback wiring
short. ( page 10)
Read note below pages 11...17
LM2576/LM2576HV Series SIMPLE SWITCHER 3A Step-Down Voltage Regulator
https://www.ti.com/lit/ds/symlink/lm2576.pdf