Second maximum sum of element orders on finite groups