[deleted]
Wendell Willkie lost the 1940 election, and died in 1944.
James Blaine lost in 1884, and died in January 1893, so he would have died in office if he had been reelected in 1888.
Horace Greeley was the losing Democratic candidate in 1872, and died later that month, before the electoral college met.