More than 5,900 non-governmental organisations (NGOs) risk deregistration if they fail to address compliance shortcomings within 90 days, the government has warned.