Finite-size scaling at the first-order quantum transitions of quantum Potts chains