Installing or updating the Teams app for education users across supported platforms
Have you changed the installation folder for Microsoft Store apps?
"Windows cannot install package MSTeams_25198.1109.3837.4725_x64__8wekyb3d8bbwe to volume D: with media ID {20202020-2020-2020-E981-3C1B09430D9B} because the volume is offline."
You can try to change the installation folder to the default location on the C: drive.
https://windowsreport.com/change-download-location-windows-10-store-apps/
Note that the default location of Microsoft Store apps is:
C:\Program Files\WindowsApps\