I had the same issue, it seems the problem is related to the integration of your runtime setting. Following this issue:
https://github.com/pydantic/pydantic/issues/6557#issuecomment-1633718474
I tried using Python 3.10 and x86/64 architecture and it solved the problem.