you can refer these links where they suggest using version 1.8.1.
version 1.8.1
1] https://github.com/coral-xyz/anchor/issues/3614#issuecomment-2745025030 2] https://github.com/coral-xyz/anchor/issues/3606#issuecomment-2738357920