Display bug of this window gone after taking sceenshot

I got this once after launching with the reason of the crash saying “Freeze”

But the weird part was the window was very small and the fonts were completely unreadable. After taking this screenshot, it looks perfectly readable though. Is there something weird going on with window resizing or dpi?

Regular 4K resolution monitor on Windows 11.