How to solve the query's timestamp fail?

This error can be caused by different reasons, mainly because your clock is not synchronized with the IC network clock.

Can you provide a code/repo to reproduce the issue?

I’d recommend upgrading to the v3 of the packages, where we implemented a better handling of timeouts and clock synchronization.