Ein Callback der an eine forEach Funktion übergeben wurde kann die Schleife nicht mit return oder break beenden. Es geht aber über das Nutzen einer Exception.
try {
BigIPBlock.forEach(function(ip, long, index) {
console.log(index, ip);
if (index > 255) throw new Error();
});
} catch (E) {
console.log('To much IPs in block.');
}