Hi Trupti Nayak,
Thanks for reaching out to Microsoft!
I tried to reproduce the issue on my end. When I upload a new PDF file to OneDrive and update it, it appears immediately in the Recently Accessed Documents section using the Graph API. However, subsequent updates to the PDF take much longer to reflect in the Recently Accessed Documents section while using the drive/recent API. For other document types, this issue does not occur—they update instantly.
This seems to be a bug I recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to look into this issue and assist you better. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.