Installing or updating the Teams app for education users across supported platforms
Are you signed in to your PC with an administrator account pr is your computer managed by your school/office administration?
According to the setup log, setup fails because the installation attempts to install the New Teams application on the D: drive, which is not accessible.
I'm afraid, you would need administrator privileges in order to change the installation path.