The bug apparently also affects newer NVIDIA drivers, as documented in the following NVIDIA forum threads:
https://forums.developer.nvidia.com/t/linux-driver-595-71-05-still-tries-to-use-screen-info-struct-which-was-refactored-in-7-0-kernel/370825 https://forums.developer.nvidia.com/t/black-green-blue-screens-in-tumbleweed-with-7-x-x-kernels/371577 An Arch Linux user has published a GitHub repo with patches for the 340.xx driver that appear to fix or work around the issue: https://github.com/MichelBoucey/nvidia-340xx

