Inhibition of current-spike formation based on longitudinal phase space manipulation for high-repetition-rate X-ray FEL