Coastal erosion warning as NSW prepares for strong winds and swell