put a hard limit to packet size in pqistore to avoid calling realloc with fancy numbers when the stream has been corrupted