The problem i'm having seems to maybe be related to this issue.
What happens is that the entire screen will freeze when i hit too many keys on my keyboard. I don't have any other keyboards plugged in although i do have a drawing tablet and a gaming mouse. The drawing tablet has buttons on the side of it and the mouse has a small amount of buttons on it too. The drawing tablet has 8 buttons and the mouse has 4 (excluding the actual mouse buttons). My keyboard is an rgb gaming keyboard (Roccat Vulcan 121 AIMO) and the rgb works fine with the use of the eruption driver. I used to use a different razer keyboard (razer black widow 2013) and this problem did not occur. Another notable thing is that when i have some games in exclusive fullscreen mode, i do not have this problem. I tested this in minecraft by just pushing down a bunch of keys in minecraft chat. I can tell its similar to the problem mentioned because i can hit as many keys as i want on the drive encryption password menu without lag. It seems the solution could be switching to wayland, but it seems that nvidia graphics cards don't support wayland. If there IS a way to switch to wayland without uninstalling graphics drivers, that could be helpful.
heres some more system information for any other details that may be notable.
OS: Ubuntu 21.04 x86_64
Kernel: 5.11.0-25-generic
Uptime: 3 hours, 16 mins
Packages: 2454 (dpkg), 8 (snap)
Shell: bash 5.1.4
Resolution: 1920x1080, 1680x1050, 1920x1080
DE: GNOME 3.38.4
WM: Mutter
WM Theme: Adwaita
Theme: Pandora-lighter-Materia-glowing [GTK2/3]
Icons: Infinity-Lavender-Dark-Icons [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 5 2600 (12) @ 3.400GHz
GPU: NVIDIA GeForce RTX 2080 SUPER
Memory: 2442MiB / 15928MiB