More than 500 people have been charged during a four-day police operation targeting domestic violence offenders in New South Wales.