Hi Mojang, So there is a glitch in 1.19 Java Editon if you create a new world and then turn on bonus chest when the world has successfully has been created if you press Alt+f4 the game will close when you come into the launcher, and then load Minecraft then load the world again
there is a 16% or 12% may be chance for you that the chest duplicates. Duplications may affect your game so please fix this.
Can you post some picture or video evidence?