This could happen if we are instead interested in a window of unique words in a long document.
Amazingly there is still a solution based on XOR!
It is a variant of Bloom Filters, which I know everyone loves, but it uses XOR instead of OR to combine things.
Basically each word is hashed to three locations and you flip those bits. Then you have to do some probabilistic analysis.
https://arxiv.org/abs/2211.03683
Edit: Actually the technique in this paper would take linear time to determine uniqueness. I wonder if there's a way to do it in constant time...
I guess you could just implement linear probing or cuckoo hashing in bits. But then update time would be amortized constant only.