Spurs narrowly avoided an early Carabao Cup exit which followed back-to-back Premier League defeats.