You haven't described it too fully as to size, but if it is about 7.92mm diameter, it is probably for a German rifle and machine gun blank cartridge.
The "running out of materials at the end of the war" is a common myth. The wooden bullet disintegrates immediately on leaving the muzzle of the weapon and was not intended to be lethal.
If it is about 20mm diameter, it is for a blank cartridge for the German Flak 38 20mm gun.
If a soldier was hit by wooden fragments, they probably came from some wood near him that was hit by something else.
*************** What follows is sig line*************
I collect fine cannon models (patent, arsenal, salesman, maker's, presentation), mug-type brass/copper gunpowder measures, artillery sights/quadrants/shot gauges, cannon firing flintlocks, percussion locks, early artillery books, manuscripts, artillery projectiles, original cannon barrels, etc.