Here are some steps you can try:
1, Check Virtual Switch Configuration:
Ensure that you have created a virtual switch in Hyper-V Manager. A virtual switch is necessary for creating virtual machines.
2, Verify BIOS/UEFI Settings:
Make sure that hardware virtualization is properly enabled in your BIOS/UEFI settings.
3, Check User Permissions:
Ensure that your user account has the necessary permissions to create virtual machines.
4, Review Event Viewer Logs:
Check the Event Viewer for any additional error messages related to the virtual machine creation process.
Try these steps, and let me know if the issue persists or if you encounter any other errors.