Suspect in National Guard attack had been unraveling for years while alternating between ‘dark isolation and reckless travel’