Thanks!
Setting the material that uses the STM/UI/Default shader mask mode to "Outside" works!
I deleted the Legacy shaders, but see no notable difference as I am not using any. Turned out the console errors only display after the update, and disappeared after relaunching Unity.
It worked without reimporting the "Shaders" folder. I tried reimporting it too, but no notable difference is seen in my use case.