Hello @Aishwarya Brahmankar ,
Thank you for contacting Microsoft Support.
According to the documentation, you cannot use $filter with /drive, only $select can be used.
Please refer https://learn.microsoft.com/en-us/graph/api/drive-get?view=graph-rest-beta&tabs=http#optional-query-parameters,
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".