Error 20 "Unsupported or invalid g-code command found in block. On or near line 2:"

Make sure you’ve selected GRBL as the device type, rather than the more exotic choices.

It may require the DTR option:

There are apparently subtle problems depending on the controller’s GRBL version:

If fiddling around with those variables doesn’t get it running, let us know what happened.