I could not get the DeltaTable solution to work in combination with Auto Loader/DLT/Unity Catalog, since it expects a table location and I want the framework to handle that.

I also tried withColumnRenamed, but I can't get it to work either. I still get the error message shown in my original question.

withColumnRenamed("NotificationSettings.Microsoft Teams", "MicrosoftTeams")