I wanted to add to that if you are using Fedora the command looks like so:
sudo dnf install \
wine-core-7.2-1.fc36.x86_64 \
giflib-5.2.1-11.fc36.i686 \
libpng-2:1.6.37-12.fc36.x86_64 \
libpng-2:1.6.37-12.fc36.x86_64 \
gnutls-3.7.3-2.fc36.i686 \
gnutls-3.7.3-2.fc36.x86_64 \
mpg123-1.30.0-1.fc36.x86_64 \
mpg123-libs-1.30.0-1.fc36.i686 \
mpg123-libs-1.30.0-1.fc36.x86_64 \
openal-soft-1.21.1-2.fc36.i686 \
openal-soft-1.21.1-2.fc36.x86_64 \
v4l-utils-1.22.1-2.fc36.x86_64 \
pulseaudio-libs-15.0-5.fc36.i686 \
pulseaudio-libs-15.0-5.fc36.x86_64 \
libgpg-error-1.45-1.fc36.i686 \
libgpg-error-1.45-1.fc36.x86_64 \
alsa-plugins-arcamav-1.2.6-2.fc36.i686 \
alsa-plugins-arcamav-1.2.6-2.fc36.x86_64 \
libjpeg-turbo-2.1.2-2.fc36.i686 \
libjpeg-turbo-2.1.2-2.fc36.x86_64 \
sqlite-3.36.0-5.fc36.i686 \
sqlite-3.36.0-5.fc36.x86_64 \
libXcomposite-0.4.5-7.fc36.i686 \
libXcomposite-0.4.5-7.fc36.x86_64 \
libXinerama-1.1.4-10.fc36.i686 \
libXinerama-1.1.4-10.fc36.x86_64 \
libgcrypt-1.10.1-3.fc36.i686 \
libgcrypt-1.10.1-3.fc36.x86_64 \
ncurses-6.2-9.20210508.fc36.x86_64 \
opencl-utils-1-14.svn16.fc35.i686 \
opencl-utils-1-14.svn16.fc35.x86_64 \
libxslt-1.1.35-2.fc36.i686 \
libxslt-1.1.35-2.fc36.x86_64 \
libva-2.14.0-1.fc36.i686 \
libva-2.14.0-1.fc36.x86_64 \
gtk3-3.24.31-2.fc36.i686 \
gtk3-3.24.31-2.fc36.x86_64 \
gst-devtools-1.19.2-1.fc36.i686 \
gst-devtools-1.19.2-1.fc36.x86_64 \
vulkan-loader-1.3.204.0-1.fc36.i686 \
vulkan-loader-1.3.204.0-1.fc36.x86_64 \
vulkan-headers-1.3.204.0-1.fc36.noarch
dnf clean packages
After I installed everything the Epic Games client stopped glitching and started acting normal.
If you have a command for another system please add it!