If output of print command is longer than 80 characters, ngspice will wrap lines at 80 characters and add new table header. To prevent it use this command:
.control set nobreak set nopage set width = 99999 .endc
It took me 1 hour to find it because ngspice documentation states to use ".with out = 99999" which actually does nothing.