I cannot reproduce this error on an RTX2080Ti using the posted code snippet with cudnn8.1 and CUDA11.2.
Could you post an executable code snippet which would reproduce this error, as the suggested cudnn unit test isn’t able to reproduce it?