The result you are expecting is not a valid array.
[first: [{},{}]]
It should be either an array like this
[[{},{}],[{},{}]]
or an object
{"first":[{},{}],"second":[{},{}]}
The code below converts your input to an array, it can be easily modified to an object if that's what you are looking for with some small modifications.
const arr = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 5 }, { id: 5 }];
let result = arr.reduce((acc, current, index) => {
if (index % 2 == 0) {
acc.push([current]);
} else {
acc[Math.floor(index / 2)].push(current);
}
return acc;
}, []);