It sounds like a kernel issue to me... why? well, the kernel is the heart of Linux. It helps in running applications and etc, and keeping the integrity of Linux. Here are a few methods on how to solve this problem:
Upgrade using apt upgrade
sudo apt update
sudo apt full-upgrade
sudo apt dist-upgrade
Upgrade by upgrading the Ubuntu release
(Almost) Every Ubuntu release comes with a newer kernel. You can try the following:
sudo apt update
echo "Prompt=normal" > '/etc/update-manager/release-upgrades'
sudo do-release-upgrade
Or if you wish, you can wait for two months for the release of 23.04 Lunar Lobster and run these commands
If you want to return to the LTS upgrade track, just run echo "Prompt=lts" > '/etc/update-manager/release-upgrades'
and you are done.
Install using apt
sudo apt install linux-headers-5.19.0-38-generic linux-headers-5.19.0-38 linux-image-5.19.0-38-generic linux-modules-extra-5.19.0-38-generic linux-modules-5.19.0-38-generic
update-initramfs -u
Upgrade to the mainline kernel (Not recommended)
apt install wget
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/
ubuntu-mainline-kernel -i
I hope this helps. If any issues please leave a comment and I will try my best to give a solution and update my answer :).
Edit: You can also try following any one issue from this article as weel if none of them work.