The Kibble-Zurek scaling at exceptional points