According to the error message, it looks like Unity's build pipeline is trying to create a temporary file with a random name inside a folder which does not exist.
It is most probable that some information is being cached in build.gradle or other parts of the project.
Afterwards, If you ran into an access denied error, restart your PC.
unity3d - Unity Build Error `DirectoryNotFoundException` - Stack Overflow