A powerful low-pressure system off the NSW coast is whipping up dangerous surf, strong winds and heavy rainfall, with the potential to trigger flash flooding.