Identify the source
Save the exact error text. Check whether it appears when CS2 launches or only when NVIDIA App opens. If the game works but the NVIDIA panel fails, troubleshoot the app separately.
Check the adapter status
Open Device Manager → Display adapters and open the NVIDIA adapter's properties. Check Device status on the General tab. If Windows shows an error or only detects a basic display adapter, note the code and check the driver for your model.
If the error only affects CS2
Keep a copy of your launch options and temporarily remove any option that selects a graphics API. Test a clean launch. If CS2 still fails, note the driver version and check whether another 3D game starts.