The error is thrown by WPF framework on the method called CreateFontFace. By its name I think a font you have is corrupted or the font cache is broken. Or something else font related.
Try a simple reboot. If that doesn't help run windows repair by executing the following command in terminal:
sfc /scannow
Oh and maybe one of these steps can help: Link
[Edited by 0x90, 11/21/2024 5:21:40 AM]
I tried sfc /scannow and the first option in the link and now it works!
Thank you very much, I would have never guessed what caused that problem!