Complexity, information geometry, and Loschmidt echo near quantum criticality