Your scene contains a skydome mesh with a sky material but it does not cover that part of the screen

In your 2D scene render camera there is an option “Hidden actors”. Add the skylight/skymesh and sky atmosphere to the actors you want to hide and the problem will go away for the purpose of rendering a minimap.