It look very much like someone has backported drm_mode_config.h v6.4 to 5.14.0-427.20.1.el9_4 and thereby broken NVIDIA graphics cards, and CUDA, generally including the driver for all NVIDIA’s GeForce 400 series up to the GeForce 700 series. (I speculate that the backport also broke the nouveau driver too!)
cf. 470xx drivers and linux 6.2 kernel - #7 by nevilled.nvidia