Could not run phased build action

ths is the error code from flutter/dart/vscode
enter image description here

im using jdk 1.8

Could not run phased build action using connection to Gradle distribution ‘https://services.gradle.org/distributions/gradle-7.6.3-all.zip’.
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.6.3/userguide/gradle_daemon.html
Process command line: C:Program FilesJavajava-se-8u43-ribinjava.exe -Xmx4G -Dfile.encoding=utf8 -Duser.country=MY -Duser.language=en -Duser.variant -cp C:Usersblack.gradlewrapperdistsgradle-7.6.3-allaocdy2d2z8kodnny3rsumj8i8gradle-7.6.3libgradle-launcher-7.6.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6.3
Please read the following process output to find out more:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.

idk idk idk idkidkidkidkidkidk