Likely the min. GPM flow switch inside the heater. Check your manual, it typically requires 40 GPM of flow. Normally on a Hayward there is an LED that will light up when there is not enough flow (interlock switches) and if that is in sync with that noise, you found it.
Another test is to...