Null source texture caused by black square on inspector

Im on Unity version 2022.1.13F and opening any inspector tab shows a black square and produces de error:
Graphics.CopyTexture called with null source texture
UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)

Setting the inspector to debug mode removes the error but i dont think of it as a long term solution.

Solved it, a render feature in my 2D Renderer Asset was calling a null texture