No module Published on Offcanvas position

When trying to login any Microsoft 365 service in Windows are even through Settings > Accounts you get presented with this error.
As far as I've been able to tell, it seems to stem from past credentials still stored in on the machine.

I've recently had to deploy a new MDT server on a Windows 2019 machine, should be straight forward having done this 2-3 years ago.
But apparently Microsoft made changes causing it to not working anymore on a fresh install.

First when you start the Deployment Workbench > Rightclick Properties on the Deployment Share > WinPE Tab, it will crash
Second, you can't generate any LiteTouch images at all, it will say the WIM file is missing and when you check the boot folder in the deployment share nothing is in there.

Page 6 of 12