Occlusion culling not working?

After I baked the occlusion it give me this error
Unable to add Renderer to the Scene after Culling.
Possible cause: A Camera callback, such as OnPreRender, called Graphics.DrawMesh.
Solution: If this is the cause, move the callback to earlier in the frame, to in OnPreCull, for example.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Why this happend the camera have no script.
Im using hdrp and unity 6.perview

I have the same problem, using Unity 6000.0.16 and HDRP

same, using 6000.0.17f1c1 HDRP

It’s happening because Graphics.DrawMesh is being called after occlusion culling, which is too late in the rendering pipeline. Try moving it to OnPreCull instead of OnPreRender. Even if the camera has no script, check for any third-party assets or custom scripts that might be affecting rendering. Also, ensure your HDRP settings are correct, and if you’re on a preview version of Unity, it might be worth updating to a stable release.

I checked the “Draw Instanced” on Terrain, and the error is not come anymore for me.