Steam is not working: SteamUpdateUI: An X Error occurred

The instructions on this page worked for me (Ubuntu 18.04, GTX 1650s): https://github.com/lutris/docs/blob/master/InstallingDrivers.md

Nvidia:

To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa

Enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386

Update to refresh packages:

sudo apt update

Warning: Please ensure your graphics card is supported by the 430 driver before installing. For a list of supported GPUs click here: https://www.nvidia.com/Download/driverResults.aspx/149138/en-us

Install the 440.82 driver:

sudo apt install nvidia-driver-440 libnvidia-gl-440 libnvidia-gl-440:i386

Install support for Vulkan API (will be functional only if you have a Vulkan capable GPU):

sudo apt install libvulkan1 libvulkan1:i386

Reboot to apply changes.