Vehicle design is what they do! And a battery pack could be designed by those who know about batteries. 8 tonnes seems like an arbitrary number. It may be unworkable if you are expecting to get an unreasonable amount of operating time from a single battery pack but maybe the way of operating needs looking at? If its quick enough to change a reasonable sized battery(from the cunningly designed vehicle), on site you don't have to go far to change it. For some plant it may even be feasible to run them on long cables direct! The point being that if infrastructure is already being installed on sites before commencement, why not consider installing electricity infrastructure as well? We need some imaginative thinking otherwise nothing will change, and that thinking needs to be revisited every so often as the baseline changes. "If I'd asked people what they want, they would have said a faster horse", Henry Ford didn't say, but the sentiment is correct.
Batteries may not be feasible now for all applications, but the pace of change is very fast. They may well be feasible before hydrogen becomes cost effective. But I imagine JCB have probably looked into it more than I have