Remove your gradle installation from C:/Program Files or subfolders.
Add add it to a place your user constrols such as C:/Users/yourUser/Gradle/gradle-8.14.2.
Than, add the correct paths on Settings:
Finally, make sure that your PathVariable and your GRADLE_HOME variable are also related to this new folder.