Canvas not showing in Unity 6

I have a World Space Canvas and nothing inside it is visible. They show in scene view but not in Game view. It worked fine in previous versions and it also works in a new project so something is wrong in mine. I tested all settings, nothing seems to fix it.

I also get this error in game view:

Draw Objects Pass: Missing resolve surface for attachment 0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

EndRenderPass: Not inside a Renderpass
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)