As menti0ned in the comments, trial and error might be the best option. But since you've asked, here is some math to give an upper bound: Assume a single coffee bean has the shape of an ellipsoid with axis lengths $a$, $b$ and $c$. Then its volume is $\pi/6\cdot abc$, whereas the quader it is inscribed in has volume $abc$, i.e. $(1-\pi/6)\approx48$% of the volume of the quader is leftover.
If the whole gap is filled in that way (namely with ellipsoids neatly sitting inside of boxes which are aligned next to each other), then the whole gap will have roughly $48$% leftover volume as well. Since in reality the coffee beans will be packed more densely, I would assume that you do not have more than $48$%$\times 8\times1\times0.22=0.92$ liters leftover volume.