There are two problems there; how does the front line trooper store his energy? For a conventional weapon, it's in the gunpowder. For a gauss weapon- I wonder what sort of explosion you get if you shoot one of the power cells, or for that matter cook it off with a tanker spit.
Something like a fuel cell, that generates power and when you break it stops working, could do, but batteries- there are issues now, with laptop batteries exploding; it's not the technology that's at fault, it's the economics deciding how much of the technology actually gets applied to the problem. You have how many million soldiers to equip across the Federation, you think there aren't going to be corners cut here and there?
Also, superior technology may make increased safety possible, but it also makes it much more necessary, and the consequences of unsafety much worse. Think about carrying an advanced-tech battery for your gauss weapon with the energy equivalent of thirty kilos of TNT stored in it.
The time to stop cutting corners is when you start to lose more than you gain by it, like the confidence of the soldiers in the government that sends them out part- equipped to fight, and the people's confidence in the government that gets their relatives in the military killed. In the book, that happened very early on, with Operation Bughouse; "I am not criticising General Diennes. I don't know whether it's true that he demanded more troops and more support and allowed himself to be overruled by the Sky Marshal-In-Chief- or not. ... What I do know is that the General dropped with us and led us on the ground and, when the situation became impossible, he personally led the diversionary attack that allowed quite a few of us (including me) to be retrieved- and, in so doing, bought his farm."
To me, that is the sound of a mistake being made, paid for, and learned from. Henlein's federation working out not to scrimp.
Compare that with the similarly named character in Verhoeven's version; in the movie, the Federation seems to have enough political control of it's civilians to keep on making and paying for that sort of goof for a very long time before common sense sinks in.
Anyway, the other problem; how close to the front do you generate your energy, and what from? Starships pretty much have to have nuclear power, they need the energy. For long duration planetary stays, rig a generator? Personally, I would not trust the movie's safety- oblivious version of Carmen Ibanez with any more energetic hydrogen application than running a bath.