How to fix kde error failed to create drawable and wine not render after install nvidia driver

after install nvidia driver 340xx legacy with this steps ( witch its name [[HowTo] get legacy 340xx NVIDIA drivers back]
now kde plasma not render system setting

and wine not render games

and the logs from terminal is : failed to create drawable
when open system settings

help me fix this problem wihout remove nvidia driver 340xx bec my pc is to old and cant run games without is

thanks for reading

Make sure to be in a X11 sesion instead of a Wayland session. What does it say in terminal?