Hi @Shomida
You can follow this link to reinstall you server with GUI mode
How to Install Windows Server 2022 Step by Step
Don't forget to check widows server with desktop experience and format the disk:
Please don't forget to mark helpful answer as accepted