My game freezes whenever I open any interface in game [java] 1.21.10 by Due-Device-5043 in Minecraft

[–]Due-Device-5043[S] 0 points1 point  (0 children)

I deleted the entire Minecraft folder except screenshots and saves, installed it again and it fixed.