Histogram Memory Allocation Failure

I have a list of 3256 pairs of data with which I plotted a scatter plot, no problem. But when I tried to take the ratio with the two elements of each pair and do a Histogram of the ratios, I got a Memory Allocation Failure. Please help.

ListPlot[ABC]

Histogram[MapThread[ If[#2 == 0 || #1 == 0, 0, #1/#2] &, {ABC[[All, 1]], ABC[[All, 2]]}]