Hello,
This part is causing the issue:
'offset' => (int)$blog_offset
Please check if your offset value is correct when using pagination. You need to calculate offset value for each page or set it to empty string when it’s not set:
'offset' => (!(int)$blog_offset ? "" : (int)$blog_offset)