Parts of New South Wales could “face up to six weeks of isolation” as flash flooding and rainfall sweeps across the state.