Can you imagine if this happened? It never would though, since it's nearly impossible.
The red states on that map were won with 50.1% of the vote and the blue states were won with 90% or more of the vote. This would give the winner of the red states a 284-254 win. Take out NJ, NC or GA and you could still get a 269-269 tie and then congress elect the red state winner as President.
Is it just a mere coincidence that all the red states had 13 EV or more and the blue states had less than 13 EV?
That's the whole purpose, to demonstrate how few states and votes you need in total to win the electoral college vote.
The closest this ever came to actually happening was 1860, when Lincoln won with less than 40% of the vote. Contrary to popular belief, he didn't win because the Democrats split three ways, but actually due to the extreme polarization leading up to the Civil War. Had he been running against a single opponent who got the combined votes of Bell, Breckinridge, and Douglas, he would have lost only two more states, Oregon and California, and still would have won the electoral vote.