Selam Amine,
https://stackoverflow.com/a/63778894/17052702
The "In the installer" part of this answer helped me to solve the exact problem you have. I got the same error as you and 'data' folder in my PostgreSQL location was empty. I just uninstalled it and installed again with selecting "English, United States" instead of "default locale" and it is working as expected now.