Hello owsianka,
I am using the ROG Strix Z690-E Gaming WIFI with Kingston Beast 5200 RAM.
I had a similar freeze problem after updating to BIOS 1403. The computer frozes completely after at least one hour. Only if I was in a game, I could play for hours, but after leaving the game it frozes instantly. One time after a restart MEMTEST gave me hundreds of errors and then the computer restarted. Additionally I had the effect, that after a freeze and reset, the PC won't switch off after a shutdown.
With the old BIOS 1304 I did not have that kind of freezes and errors.
I found out, that the XMP II stability has decreased with the BIOS 1403. When I set my RAM from XMP II 5200 to XMP II 4800 the freezes were gone, as were the memory errors.
Hope my story can give you a hint, where to look.
Best regards,
Iregart