How To Fix Input Signal Out Of Range Change Settings To 1600x900-60hz

I installed OpenJDK 11, 14, 15 and 16 using the MSI installers.
Checked to update registry for all of them.
Running Gradle with JDK 11. JDK 11 also has the JAVA_HOME.
Gradle now lists all these as toolchains.