Here is a more thoughtful way to solve this problem based on comments by Dzhigar and Daniel Padik (thank you guys), so check with what service you get this port problem, in my case it was with Apache and MySQL.
Starting with Apache, either click on the "Logs" button in the XAMPP control panel and open the error log to see the problem or go to the XAMPP installation directory and run the "apache_start.bat" batch file, this will also give the cause of the problem.
Now you have the port number that is causing the problems, Now follow the Jigar comment and run
netstat -aon | findstr 0.0:443
Remember that 443 is the port number, so enter the port number that causes the problem. This command will give the process PID using the port as shown below.
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 4996
So 4996 is the process identifier (PID) you want to stop.
Now, with the help of the task manager, you can see and kill the process, but some processes cannot be displayed by the task manager, in this case you must download Mycrosoft Process Explorer , unzip the downloaded package and run the ".exe" file as administrator.
You will find many running processes, sort them using the PID, and you will find your service.
Select this service and stop it.
Then go to your XAMPP control panel and launch Apache, and you can start it this time.
Follow the same process for MySQL.
Enjoy :)