Hi Tereza,
I think we have seen this error before. If I remember correctly, this happens when sequence ids are not unique across the searched databases. Also, I think, it only happens for TBLASTX searches. Used to be a bug in BLAST.
You could try making your sequence ids unique. For example, by prefixing the sequence ids with a few letter corresponding to the sequence file. So scaffold0001 in file my_species.fa becomes my_species_scaffold_00001.
Or you could try updating your BLAST version. I would suggest BLAST+ 2.9.0. You can put the downloaded BLAST binaries in ~/.sequenceserver. Then edit the path to the binaries in ~/.sequenceserver.conf file.