The UN special envoy to Libya has warned that chaos in the north African country could destabilise the whole region if rival politicians fail to nail down a political agreement within the next few days.