If you're reading this it's because none of these worked for you:
JVM errors when running minecraft
Problems updating Java on Ubuntu 20.04 for Minecraft 1.18
How to install Java 18 (JRE) on Ubuntu LTS 20.04
I'm running Kubuntu 20.04 / kernel 5.13.0-28-generic with openjdk-8 and openjdk-17 installed.
I'm also running Minecraft Launcher v 1.6.93 because I like it.
Solution:
1- Remove openjdk-17
sudo apt remove openjdk-17-*
2- Get Oracle's Java 17
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
3- Install dependencies first
sudo apt install libc6-i386
sudo apt install libc6-x32
4- Install Java 17
sudo dpkg -i jdk-17_linux-x64_bin.deb
5- Open your Minecraft launcher and set the Java Settings: Executable to the correct path. In my install it's:
/usr/lib/jvm/jdk-17/bin/java
and remove all JVM arguments that give problems.
6- Save your profile and play