Hi @kedar giri
Did you mean prevent hyperlinks to Onedrive files which are larger than 35mb in Exchange Online or Exchange On-premises?
To my knowledge, since Exchange only calculates the files which are sent directly as attachments in emails, it doesn't and cannot calculate the size of files sent in a hyperlink.
Thus there is no method to block these emails in Exchange.
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.