You're trying to use a package of one Python version with another, and that causes a conflict.
Install virtualenv on the version you want to use it with and call the interpreter of that version directly.
py -3.10 -m virtualenv
python3.10 -m virtualenv