Did something similar myself a few years back (
https://talkelections.org/FORUM/index.php?topic=171640.msg3681252#msg3681252).
Additionally, here's a chart illustrating the popular vote margin required for each side to win - from 1952 to 2020 (18 elections), they split 9-9 in which side they favor, while prior to that the big Democratic leads in the South made them likely losers in the event of a popular vote tie.
Here's a table illustrating the same thing, along with tipping-point states.
Two notes:
Firstly, I didn't calculate figures for 1912, given that Roosevelt outpolled Taft (same reason why I didn't do it in the earlier thread).
Secondly, five elections have two tipping-point states instead of just one (1948, 1960, 1968, 1972 & 2020). The first three should be obvious as to why - third-party electors create a scenario where no side has a majority - but the last two are because, if you rank states in order of marginality, a 269-269 tie could result.