Hi Usman Ishtiaq,
Thank you for providing the error message
Here is a similar case which was previously handled
https://learn.microsoft.com/en-us/answers/questions/2122941/how-to-detach-network-interface-from-deleted-vm-az
Feel free to reach out if you have any further queries.
If you found the information useful, please click "Upvote" on the post to let us know.