I was trying to setup forge and i kept getting this problem.
I looked it up and people said to give it more memory so i gave it 5g and it still isnt working.
Sorry if i used the wrong terminology for something I'm new.
heres the message i got https://imgur.com/a/kSxRLCp