You playing Steam Version?
I used to have a glitch where many aspects of the game and it’s UI would flicker or disappear. This was fixed when upgrading my graphics card.
And this only was on the Steam version, it was fine on the Microsoft Store version.
Yes i am on steam, everything works now