If you have not been able to fix this yet, I recommend downloading Java 17 and forcing your Minecraft Launcher to launch the snapshots through it.
You can do this by selecting More Options when editing instances and selecting Java 17 when choosing the Java Executable. I found this website helpful for more information: https://minecrafthopper.net/help/guides/changing-java-version/
Hope this helps!
If you have not been able to fix this yet, I recommend downloading Java 17 and forcing your Minecraft Launcher to launch the snapshots through it.
You can do this by selecting More Options when editing instances and selecting Java 17 when choosing the Java Executable. I found this website helpful for more information: https://minecrafthopper.net/help/guides/changing-java-version/
Hope this helps!