These are some of the things you can do if you can’t format the USB Drive on your Windows 11/10 computer: Make sure the is USB Drive is not Write-Protected Scan your Computer & USB for Virus Run ...
All this is assuming you can still boot into Windows 11/10 in a regular way. If you cannot, the only way is to use a bootable USB drive. You can then use the advanced recovery. Reset Windows Format ...