Ergodicity breaking and scaling relations for finite-time first-order phase transition