Commensurate-incommensurate phase transition of dense potassium simulated by machine-learned interatomic potential