Well, we have received similar error reports in the past. This is usually a problem of Java not working well for certain graphics drivers. Possible fixes include:
Using a different Java version.
If yEd is running with Java 8, try Java 11 or the most recent Java 12.
If yEd is running with Java 11, try Java 8 or the most recent Java 12.
Updating your graphics driver.