Issuing this error in 50% cases

Hello to all
I have a strange issue. How should I fix this error while deploying? (only on server-side)

While trying to aggregate data through the API request to MongoDB, MongoDB returns the next message instead of information (data). This error can appear with any simple/aggregate query.

Cursor session id (xxxxxxxxxxxxxxxxxxx) is not the same as the operation context's session id (none)

The main problem with this error is - It newer appears during local tests/builds.

I am using Vercel for hosting.