Winning with the most balls to spare despite losing 5+ wickets in ODIs:

India won the match against West Indies by 163 balls to spare which is the second most balls to spare to win a ODI match after losing 5 wickets in the chase.

Winning with the most balls to spare despite losing 5+ wickets in ODIs:

180 SL vs Aus Brisbane 2013
163 Ind vs WI Bridgetown 2023 *
162 NZ vs Can Benoni 2003
161 NZ vs Aus Auckland 2015