Random "uncaught promise rejection" on Realm Functions and Triggers

Randomly from time to time I’m getting this error when running Realm Functions manually or from scheduled trigger:
uncaught promise rejection: mongo: no documents in result
This doesn’t seem to be a problem with the code, as I will run it again with the same parameters it finishes without a problem. Is that a problem with the size of my cluster, memory, CPUs? How can I investigate it closer, there is barely any information in logs.