1. A printing apparatus comprising: a carriage configured to mount a printhead and move; an acceleration sensor provided in the carriage; and at least one processor and at least one memory coupled to the at least one processor, the at least one processor serving as units comprising: a transformation unit configured to obtain an obtained spectrum by frequency-transforming an output of the acceleration sensor; and a determination unit configured to determine, based on the obtained spectrum, at least one of an operation abnormality of the carriage and an external impulse given to the printing apparatus, wherein the determination unit includes: a first determination unit configured to determine, in a predetermined frequency of interest, whether the obtained spectrum exceeds a first threshold; and a second determination unit configured to determine, in a frequency band lower than the frequency of interest, whether the obtained spectrum exceeds a second threshold, and the determination unit (1) determines that the carriage operates normally if the first determination unit determines that the obtained spectrum is not more than the first threshold with respect to the frequency of interest, (2) determines that the external impulse has occurred if the first determination unit determines that the obtained spectrum exceeds the first threshold with respect to the frequency of interest and the second determination unit determines that the obtained spectrum exceeds the second threshold with respect to the frequency band lower than the frequency of interest, and (3) determines that a jam of a printing sheet caused by the carriage has occurred if the first determination unit determines that the obtained spectrum exceeds the first threshold with respect to the frequency of interest and the second determination unit determines that the obtained spectrum does not exceed the second threshold with respect to the frequency band lower than the frequency of interest.