Upgrading to Gradle 8.11.1 could help with this issue, since Gradle 8.11+ generates dependency-accessors in a different cache location.
Note that "Could not move temporary workspace" is not entirely solved on Windows yet, but should work better for dependency-accessors case.