Harding counts from the 1920 election. He died 1923. There is a rumor that his wife poisoned him. And if I remember, he stood a good chance of being impeached due to the teapot scandal of the time.
FDR did die in office, just not the 1940-44 term having died April 12, 1945