Aweral, in that case you should create an issue on the Java Edition bug tracker.
Tested and can confirm what Danu mentioned: no issues in windowed mode, but they return when going fullscreen.
Also affects my game on version 1.17.200, here are my settings:
[media]
Ran into a similar crash in Survival while running a world created in an earlier 1.18 snapshot. Screen turned completely grey and was unresponsive. Had to kill it from the Task Manager, which was locked to just short of 3.2 GB of memory in use.
Minecraft: 1.18 Pre-release 1
Launcher: Minecraft Launcher
Java: bundled version, no JVM argument modifications
OS: Windows 10 21H1 (19043.1348)
[media]CPU: Intel Core i7 1165G7
GPU: Intel Iris Plus G7
GPU Driver: Intel Iris Plus Graphics 30.0.100.9955
RAM: 16 GB