Infinite processing error in grids

Hi, Sometimes I face “infinite processing” issue while navigating to next pages or while using quick searches in grids. When I inspect I see this error:

What could be the problem? Please suggest a solution.