This is a form of very acute Post-Traumatic Stress Disorder (PTSD), coined during World War 1.
Soldiers suffering from shellshock acted as if they suffered head wounds, but were not visibly wounded in any way. Yet they had extreme effects on their ability to reason, their general demeanor, and even their ability to walk and perform basic physical functions.
See this video: The Effects of Shell Shock: WWI Neuroses (warning: it’s tough to watch).
World War 1 was known for it’s inhuman conditions, and particularly for the use of artillery. Combatants engaged in trench warfare on the Western front were subjected to hours, days, and even weeks of non-stop artillery barrages. The sheer intensity, scale, and duration of artillery fire has never been equaled in other conflicts.
Shellshock may have been caused by some combination of a natural stress reaction and closed head and inner ear injuries caused by multiple, extended close-proximity explosions.
After World War 1, the term “shellshock” was gradually replaced more formal phrases like “Combat Stress Disorder” and PTSD.