Well, you can try to delete your yEd profile directory ~/Library/yWorks/yEd (see also "Help" -> "About"). Note, ~/Library does not mean the system-wide Library directory, but the one in your user home directory.
Other than that you could also try to uninstall yEd, install the latest version of Java (which is 24.0.1 at the time of this writing), and run yEd from the generic Java zip archive.
There are several vendors offering Java for free like Amazon, Azul Systems, BellSoft, etc. We usually bundle/use BellSoft's Liberica Full JDK.
To run yEd from the generic Java zip archive, extract the archive to a directory of your choice, open a console/terminal, change into the directory that contains the yed.jar file that was extracted from the zip archive, and run
java [options] -jar yed.jar
where [options] needs to be replaced with the options listed in the yed.vmoptions file that resides in the same directory.
Hope this helps.