Hi Sukhbir Kumar,
Good day! Welcome to Q&A forum.
This is SharePoint's default behavior where double clicking anywhere in a row opens the associated file in SharePoint Online.
There is no method to prevent double-clicking on empty cells from opening documents in SharePoint Online.
Hope these information helps.
Please do let us know if you have any further queries.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.