Please follow the below steps and see if that helps:
Go to Settings -> Network & Internet
Select Change adapter options
Right click on NIC Adapter -> Properties
Check if the Hyper-V Extensible Virtual Switch is installed in your NIC's Properties
If it is installed, uninstall it.
Reinstall the Hyper-V Extensible Virtual Switch
5.1 Select Install
5.2 Select Protocol
5.3 Select Hyper-V Extensible Virtual Switch
Create the virtual switch on Hyper-V using the Hyper-V manager
This article solves an error message when you try to re-create a Hyper-V virtual switch (vSwitch) for the same physical adapter.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--