Are you setting the CUDA_LAUNCH_BLOCKING=1 env variable in your terminal or are you trying to set it in your script/notebook?
In the latter case, please use it as an external env variable, as setting it via os inside a script will fail if any libraries were imported and have already initialized CUDA.