A court heard the 34-year-old suffers from complex post-traumatic stress disorder after serving in Helmand province, Afghanistan.